Creating a Shortcut to a Target

You can use the Shortcut to Target template to create a mini-script that serves as a shortcut to a commonly used target. You can also customize the way the target is run. The shortcut can be saved as as a menu item, toolbar button, keyboard shortcut, or project link.

To create a shortcut to a target:

  1. Choose File and choose New from the main window.
  2. Expand the Ant Build Scripts node, select Shortcut to Target, and click Next.
  3. Specify where you want to place the target and whether you want to customize its Ant code. Click Next to proceed.
  4. Select the target in the Select Ant Target pane. The target must already exist in a mounted filesystem. A shortcut can only point to one target. Click Next to proceed.
  5. Add or change any of the shortcut script's elements, such as tasks or properties. This pane only appears if you selected the Customize generated Ant code checkbox in pane 2.
  6. Use the remaining panes of the wizard to assign the shortcut to a project, toolbar, menu, or keyboard shortcut. 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 pane 2.
  7. When you have specified all of the necessary information, click Finish. The shortcut is created in the specified locations.
See also
Editing an Ant Script
Setting Properties in an Ant Script
Ant Project Files
Running an Ant Script
Executing a Target

Legal Notices