ANT Create Script

 

- Info:

- This tutorial shows how to create ANT file.

 

- Example:

- Create D:\Temp\ANT\Test.xml

 

Test.xml

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

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

<target name="default">

<echo message="Hello from ANT!"/>

</target>

</project>

 

- Test:

- Start MSDOS

- cd D:\Temp\ANT

- ant.bat -buildfile Test.xml

Buildfile: Test.xml

run:

[echo] Hello from ANT!

BUILD SUCCESSFUL

Total time: 0 seconds