ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: private
Date Wed, 22 Aug 2001 11:13:32 GMT
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 name="A" depends="B" if="_internal_call">
		<echo message="Hello A"/>
	<target name="set_internal_call">
		<property name="_internal_call" value="false"/>
	<target name="main" depends="set_internal_call,A">
		<echo message="Hello Main"/>


-----Original Message-----
From: []
Sent: 22 August 2001 09:32
Subject: private


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.



Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!

Get your own FREE, personal Netscape Mail account today at


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.


View raw message