specifying multiple targets

C

coltrane

Multiple targets can be specified when ant is run from the commandline.
Is it possible to specify multiple targets when ant is called with in
an ant script?

something like

<target name="sometarget">
<ant dir="someapp" target="target1, target2">
</ant>
From experience I know this doesn't work but I didn't know if there was
another way to get the same result.

The reason I ask is that I would like to have the ant script opened
once and run 2 targets instead of opening the ant script twice.

thanks

john
 
C

coltrane

Well here's the answer to my own question


<target name="test_multiple">
<echo message = "testing double targets"/>
<ant antfile="test_multiple.xml">
<target name="two"/>
<target name="one"/>
</ant>
</target>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top