Creating a Shortcut to a Target

See Also 

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 shortcut 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.

    You can also set the file name and display name for the shortcut. Remember to set a recognizable display name for the shortcut. For example, if you are creating shortcuts to the clean target in several build scripts, you may want to add some text so you know which build script each shortcut is pointing to.

  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. The wizard only shows those steps that you selected in pane 2.

    Make sure you do not overwrite any existing keyboard shortcuts. You can view existing keyboard shortcuts by choosing Tools and choosing Keyboard Shortcuts.

  7. When you have specified all of the necessary information, click Finish. The shortcut is created in the specified locations.
tip If you want to delete a menu shortcut to a target, open the Options window and expand IDE Configuration and expand Look and Feel and expand Menu Bar. Then expand the menu that contains the shortcut, right-click the shortcut's node, and choose Delete.
See Also
Customizing the Display of Commands in a Menu
Ant Script Node
Running an Ant Script
Executing a Target

Legal Notices