Creating an Ant Project

The IDE provides you with templates that let you create Ant projects and custom Ant tasks. You can also create shortcuts to run commonly used targets in an existing Ant project, such as build or clean. You can save these shortcuts as toolbar buttons, menu items,

To create an Ant project or custom task:

  1. Choose File and choose New.
  2. Expand the Ant Build Scripts node and select one of the following:

To create a shortcut to a target:

  1. Choose File and choose New from the main window.
  2. In the New wizard, expand the Ant Build Scripts node, select Shortcut to Target, and click Next.
  3. In the Choose Options panel of the wizard, choose where you want to place the target and whether you want to customize its Ant code. Click Next to proceed.
  4. Choose the target in the Select Ant Target panel. The target you want to create a shortcut for must already exist in a mounted filesystem. A shortcut can only point to one target. Click Next to proceed.
  5. In the Customize Script panel, add or change any of the Ant script's elements, such as tasks or properties. This panel only appears if you selected the Customize generated Ant code checkbox in panel 2.
  6. In the remaining panels of the wizard, choose which projects, toolbar, menu, or keyboard shortcut to assign the shortcut to. Make sure you do not overwrite any existing keyboard shortcuts. You can view existing keyboard shortcuts by choosing Tools and choosing Keyboard Shortcuts. The wizard only shows those steps that you selected in panel 2.
  7. When you have specified all of the necessary information, click Finish. The shortcut is created in the specified locations.
See also
Executing a Target
Configuring Ant Settings
Ant Project Files

Legal Notices