The most straightforward way to edit an Ant script is as a text file in the Source Editor. You can also use the Ant project's nodes in the Explorer to edit the contents of your Ant script.
To edit an Ant script as a text file:
To add a task, property, or data structure:
If your project or target uses a separate ant.properties file, do not add properties to your Ant script using the Add submenu. Instead, right-click the project or target node to and choose Properties. In the Properties window, click the ellipsis button for Project Properties or Target Properties.
![]() |
When you edit an Ant script using commands in the Explorer, the IDE sometimes makes minor modifications in the script's whitespace or attribute ordering. If your script is under version control, these changes make the script appear to be modified in places where no meaningful changes have occurred. Additionally, you should avoid editing an Ant script in the Explorer if the script contains an XML entity include. Ant scripts can use XML entity includes to include standard sets of targets or definitions that are located in external XML files. The IDE cannot handle the syntax used by XML entity includes and can damage your script if you edit it in the Explorer. |
To examine or change a target's dependencies:
To view and edit an element's attributes:
See also | |
---|---|
Ant Project Files Creating an Ant Project Running an Ant Script Executing a Target Configuring Ant Settings |