Defining the format of an Ant script
To define the format of an Ant script, do these steps:
| Select Window Æ Preferences.
|
| In the Preferences dialog, select and expand Ant.
|
| In the Ant preferences dialog, you can specify the console colors (Figure | 5-7).
|
Figure 25-7 Ant preferences
| Expand the Ant folder and select Editor.
|
In the Appearance tab, you can change the layout preferences of your Ant file.
|
In the Syntax tab, you can change the syntax highlighting preferences with a preview of the results, and on the Problems tab you can define how certain problems should be handled.
|
In the Problems tab, you can change the severity levels for the buildfile problems.
|
In the Folding tab, you can enable folding when opening a new editor and specify which region types should be folded.
|
| Expand Editor.
|
In the Content Assist window, you can define the content assist preferences.
|
In the Formatter window, you can define the preferences for the formatting tool for the Ant files.
|
In the Templates window, you can create, edit, delete, import and export templates for Ant files.
|
| Select Runtime.
|
In this dialog, you can define your preferences such as classpath, tasks, types, and properties.