ANT Tags <ant/>

 

- Info:

- Calls target from another ANT script.

- If antfile is not defined "build.xml" from the same directory is called.

- If target is not defined default target is called.

 

- Example:

- Create ANT Script Test.xml

 

Test.xml

<?xml version="1.0" encoding="UTF-8"?>

<project name="MyAntProject" default="default" basedir=".">

<target name="default">

<ant antfile="Helper.xml" target="run"/>

</target>

</project>

Helper.xml

<?xml version="1.0" encoding="UTF-8"?>

<project name="MyAntProject" default="default" basedir=".">

<target name="default">

<echo message="Helper.xml - target default "/>

</target>

<target name="run">

<echo message="Helper.xml - target run"/>

</target>

</project>