ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: private Target
Date Mon, 11 Feb 2002 17:35:34 GMT

----- Original Message -----
From: "Peter Kesch" <kesch@swt.ruhr-uni-bochum.de>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Sunday, February 10, 2002 11:44 PM
Subject: AW: private Target


> That isn't what im searching for ...
> for example i have a target
> <target name="copylocalxml">
> <antcall target="copylocalwin" />
> <antcall target="copylocallin"/ >
> </target>
>
> <target name="copylocalwin" if="windows">
> <copy tofile="...../web.xml" dest="${basedir}/web-inf/web.xml.local" />
> </target>
>
> <target name="copylocallin" if="linux">
> <copy tofile="...../web.xml" dest="${basedir}/web-inf/web.xml" />
> </target>
>
> now i want to avoid calling copylocalwin.or copylocallin from the
> commandline ...
> and i think the depends argument doesnt helps ....
> until copy doesn't supports the if argument i see no other way to solve
the
> problem of copying different files, depending on os type ...
>
> bu how do i avoid the possibility of calling these targets ...
>

you can make it very hard (but not impossible) to call from the command line
by putting a - at the front of the name, or a space anywhere in it.


--
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