Thanks for the info,

It's certainly a usable workaround which I may have to employ.

But I'm surprised that this isn't either a current feature or a feature planned for 
Ant 2.

Is there a reason why this doesn't exist?

Thanks

Chris
-=-=-=

[EMAIL PROTECTED] wrote:

>Would you settle for setting a property in your main <target> and then
>perform a check for it on your *private* <target>?  Probably not, it's a bit
>of a hack!  But, I've included a build xml file anyway ..
>
><project name="test" default="main" basedir=".">
>    <target name="B" if="_internal_call">
>        <echo message="Hello B"/>
>    </target>   
>    <target name="A" depends="B" if="_internal_call">
>        <echo message="Hello A"/>
>    </target>
>    <target name="set_internal_call">
>        <property name="_internal_call" value="false"/>
>    </target>
>    <target name="main" depends="set_internal_call,A">
>        <echo message="Hello Main"/>
>    </target>
></project>
>
>
>Simon
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: 22 August 2001 09:32
>To: [EMAIL PROTECTED]
>Subject: private
>
>
>Hi,
>
>Is it possible (and, if not, forseen) to be able to make a target private;
>so it can only be called from another target, and not from the command line?
>
>I have 2 targets; each sets their own specific properties before sending
>them to a more generic (and, ideally, private) target.
>
>TIA
>
>Chris
>
>
>
>__________________________________________________________________
>Your favorite stores, helpful shopping tools and great gift ideas.
>Experience the convenience of buying online with Shop@Netscape!
>http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>
>
>------------------------------------------------------------------------------
>
>Part of the Halifax Group, Halifax plc, Registered in England No. 2367076.  
>Registered Office: Trinity Road, Halifax, West Yorkshire HX1 2RG. Represents only the 
>Halifax Financial Services Marketing Group for the purposes of advising on and 
>selling life assurance, pensions and unit trust business.  The Marketing Group is 
>regulated by the Personal Investment Authority.  Switchboard 01422 333333.
>
>==============================================================================
>
>


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

Reply via email to