ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Kesch" <>
Subject AW: private Target
Date Mon, 11 Feb 2002 07:44:06 GMT
That isn't what im searching for ...
for example i have a target
<target name="copylocalxml">
<antcall target="copylocalwin" />
<antcall target="copylocallin"/ >

<target name="copylocalwin" if="windows">
<copy tofile="...../web.xml" dest="${basedir}/web-inf/web.xml.local" />

<target name="copylocallin" if="linux">
<copy tofile="...../web.xml" dest="${basedir}/web-inf/web.xml" />

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



-----Urspr√ľngliche Nachricht-----
Von: Srinivas Velidanda []
Gesendet: Montag, 11. Februar 2002 08:17
An: Ant Users List
Betreff: RE: private Target
Wichtigkeit: Hoch

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


-----Original Message-----
From: Peter Kesch []
Sent: Monday, February 11, 2002 12:44 PM
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 ....



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message