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 ... regards Peter -----Ursprüngliche Nachricht----- Von: Srinivas Velidanda [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 11. Februar 2002 08:17 An: Ant Users List Betreff: RE: private Target Wichtigkeit: Hoch Hi, you can make a target to be executed depending on another by specifying the depends attribute in the build script for the target element, i haven't actually worked with forte, but to make the target depend on some other i have done the same thing. <target name="" depends="here give another target name which this target should depend on"> </target> Srinivas. -----Original Message----- From: Peter Kesch [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 12:44 PM To: [EMAIL PROTECTED] Subject: private Target Hi ... we use an Ant buildscript with forte4Java and now i need a hint. forte shows ma all target, also these i need to check if it is running on a windows or linux system. because of missing if statement in some tasks i have to use 2 targets which do the same but with different files on windows or linux. And now i need to know if there is any way to make targets private, so they can only be called by another target. by the way ... the condition task isn't supported by forte4java because of an old ant.jar file in <fortehome>/modules/ext/. if you copy the one from ant-1.4.1 in this dir, it works fine .... regards peter -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>