I saw this relevant question but my situation is different so asking this again. Basically, I have 12 ant files that I have to run in a specific sequence. For each ant file, I select a different target, such as "create" or "build and deploy all." How can I create an ant file that will call of the right targets for all of these files?
Pseudocode:
<Call antFile1, "clean">
<Call antFile1, "create">
<Call antFile2, "build">
.
.
.
<Call antfile12, "build and deploy all">
To run the ant build file, open up command prompt and navigate to the folder, where the build. xml resides, and then type ant info. You could also type ant instead. Both will work,because info is the default target in the build file.
Maybe have a target like below in encompassing ant file:
<target name="all">
<ant antfile="antFile1" target="clean" />
<ant antfile="antFile2" target="create" />
...
</target>
Refer here: http://ant.apache.org/manual/Tasks/ant.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With