ECLIPSE Create ANT

 

- Info:

- This tutorial shows how to use Eclipse to create ANT script.

 

- Create:

- File New File File Name:MyAnt.xml Finish Paste below code File Save

 

MyAnt.xml

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

<project basedir="." default="run" name="MyAntJava">

<target name="run">

<echo message="Hello, world"/>

</target>

</project>

 

- Run:

RC on MyAnt.xml Run External Tools... Ant Build New

- Name:RunMyAnt

- JRE Run in the same JRE as workspace:CHECK

- Classpath Add JARs D:\Install\JDK142\j2sdk1.4.2\lib\tools.jar Run

 

- Repeat:

- Click on drop down arrow Ant RunMyAnt