Working with Ant
Begin by adding a new Ant file to your project, which you'll use for the rest of the tutorial:
- Open the Package Explorer
- Right-click any Java Project and click New > File
- In the New File window, type
build.xmlas the file name
The file is created, and the Ant editor opens. Now, add some content to the file. Click anywhere in the editor and press Ctrl+Space. A completion proposal containing an option called Buildfile template -- simple buildfile with two targets appears (see Figure 1). Click this to add a sample project containing two targets to the file.
Figure 1. Using the Buildfile template
Now that we have some content, let's take a closer look at the Ant editor.