Creating a Shortcut to a Target

See Also 

You can create a mini-script that serves as a shortcut to a commonly used target in an Ant script. You can also customize the way the target is run. The shortcut can be saved as a menu item, toolbar button, or keyboard shortcut.

To create a shortcut to a target:

  1. Select the build script node node in the Files or Favorites window to display its targets in the Navigation window.
  2. Right-click the target node and choose Create Shortcut.
  3. Specify where you want to place the shortcut and whether you want to customize its Ant code. Click Next to proceed.
  4. Use the remaining pages of the wizard to assign the shortcut to a toolbar, menu, or keyboard shortcut. The wizard only shows those steps that you selected in step 3.

    To ensure you do not overwrite any existing keyboard shortcuts, you can view existing keyboard shortcuts by choosing Tools > Options and clicking Keymap.

  5. In the Customize Script page, add or change any of the shortcut script's elements, such as tasks or properties. This page only appears if you selected the Customize generated Ant code checkbox in step 3.
  6. When you have specified all of the necessary information, click Finish. The shortcut is created in the specified locations.
See Also
Mapping an Ant Target to an IDE Command
Editing an Ant Script
Running an Ant Script

Legal Notices