How to call Ant from another build.xml with params?
Hello!I need to be able to call several ant files with specified targets and in same call I also need to pass soam params like "-Dtest=f"
My environment looks like:
C:\folderA
In folder A I got a build.xml taht initiate the calls :
<target name="clean_build_deploy">
<ant antfile="C:/folderB/build.xml" target="clean" />
<exec executable="ant">
<arg value="f=C:/folderB/build.xml"/>
<arg value="build"/>
<arg value="-Dtest=f"/>
</exec>
<ant antfile="C:/folderB/build.xml" target="deploy" />
</target>
C:\folderB
In folderB ther is another build.xml that I can no edit for some reasons.
It looks like my exec-part is not correct. But with exec is the only idea I got to be able to pass params like "-Dtest=f"
So if you got any ideas please let me know!
Best regards
Fredrik
