Editing an Ant Script

See Also 

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:

warning 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:

  1. Right-click an Ant target and choose Properties. The Depends On property lists the target's dependencies.
  2. Click the ellipsis (...) button in the Depends On property to open the Depends On dialog box. You can configure dependencies by selecting the desired targets.

To view and edit an element's attributes:

  1. Right-click a project, target, task, or data structure and choose Properties. The Properties window lists all of the element's available attributes and their values.
  2. Click any property to change its value.
See Also
Ant Project Files
Creating an Ant Project
Running an Ant Script
Executing a Target
Configuring Ant Settings

Legal Notices