Hi,
I have tried, following Jacques' advice :
<project name=main...
<target name="looping" depends="init">
<property name="var-prop" value="value1"/>
<ant antfile="subbuild.xml" dir="$(var-prop)"/>
<property name="var-prop" value="value2"/>
<ant antfile="subbuild.xml" dir="$(var-prop)"/>
</target>
</project>
But it didn't work (echos instead of ants won't give the expected values).
So I did :
<exec dir="${OPM_CVS_DIR}" command="ant -buildfile
CustomizersSetup.xml -Dpartner=RAGeneric RAGeneric"/>
<exec dir="${OPM_CVS_DIR}" command="ant -buildfile
CustomizersSetup.xml -Dpartner=ZBox partner"/>
This way I am able to pass the arguments I want to the ant task.
But, if this does work under Unix, it won't under Windows NT (4 + SP 6).
The error is :
Myos = Windows NT
[exec] ant
BUILD FATAL ERROR
build.xml:357: Error exec: ant
build.xml:357: Error exec: ant
at org.apache.tools.ant.taskdefs.Exec.run(Exec.java:144)
at org.apache.tools.ant.taskdefs.Exec.execute(Exec.java:76)
at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
at org.apache.tools.ant.Project.runTarget(Project.java:681)
at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Code)
at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
That is Exec catches an IOException. Where can it come from ?!