ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikko Kurki-Suonio <max...@davisor.com>
Subject Re: "private" targets
Date Fri, 02 Nov 2001 06:26:14 GMT
On Thu, 1 Nov 2001, Todd Chambery wrote:

> I'd like to make it so they could only be run when called from within the
> buildfile (not when listed on the command line), thereby more tightly
> controlling how my buildfile can be used.  Is there any facility for doing
> this?

Not really. 

You can get something like that with "if=", e.g.

<target name="entrypoint">
 <property name="entryok" value="true" />
 ...
</target>

<target name="not_entrypoint" if="entryok">
 ...
</target>

Not 100% foolproof, though.

//Mikko



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message