ant-user mailing list archives

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

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

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


----- output -----

Buildfile: build.xml

     [echo] test

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:

Thank you.

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

View raw message