ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Cepek" <mce...@smsi.com>
Subject Running multiple targets with 'ant' task
Date Tue, 24 Jun 2003 15:59:53 GMT
Hi,

I would like to invoke a series of targets in another ant script.

I tried the following but it didn't work.  Is there another way to do
this (using only the built-in Ant tasks)?

----- build.xml -----

<project default="foo">
<target name="foo">
  <property name="targTest" value="tt"/>
  <ant antfile="build2.xml" target="${targTest}"/>
  <property name="targSet" value="one two three"/>
  <ant antfile="build2.xml" target="${targSet}"/>
</target>
</project>

----- build2.xml -----

<project default="two">

<target name="tt"> <echo message="test"/> </target>
<target name="one">   <echo message="1"/> </target>
<target name="two">   <echo message="2"/> </target>
<target name="three"> <echo message="3"/> </target>

</project>

----- output -----

Buildfile: build.xml

tt:
     [echo] test

BUILD FAILED
file:build.xml:7: Target `one two three' does not exist in this project.

Total time: 2 seconds

----- [END] -----

This issue was raised previously (and not answered) in this thread:

http://archives.apache.org/eyebrowse/BrowseList?listName=user@ant.apache
.org&by=thread&from=253901

Thank you.


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


Mime
View raw message