Because Ant buildfiles are simple text files, any text editor can be used to edit them. But there are several advantages to using the Eclipse Ant editor, including syntax coloring, content assist and an outline view. To get familiar with the Eclipse Ant editor, create a simple Ant buildfile using this editor.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Hello World" default="Hello" basedir=".">
<property name="HelloText" value="Hello"/>
<target name="Hello">
<echo>${HelloText}</echo>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project name="Hello World" default="Hello" basedir=".">
<property name="HelloText" value="Hello"/>
<property name="WorldText" value="World"/>
<target name="Hello">
<echo>${HelloText}</echo>
<echo>${WorldText}</echo>
</target>
</project>