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:
- Choose File
New from
the main window.
- Expand the Ant Build Scripts node, select Shortcut to Target, and click
Next.
- Specify where you want to place the target and whether you want to customize
its Ant code. Click Next to proceed.
- 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 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.
- 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.
- 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
Keyboard Shortcuts.
The wizard only shows those steps that you selected in pane 2.
- When you have specified all of the necessary information, click Finish.
The shortcut is created in the specified locations.
 |
If you want to delete a menu shortcut to a target,
open the Options window and expand IDE Configuration Look
and Feel Menu
Bar. Then expand the menu that contains the shortcut, right-click the shortcut's
node, and choose Delete. |
Legal Notices