How do I define a shortcut for an Ant target?
You can define a keyboard shortcut or even a toolbar button or menu item that will trigger any Ant target.
- Expand build.xml (e.g. in the Files or Favorites tabs) to see a list of targets it contains.
- Right-click any of these targets and select Create Shortcut. A wizard appears that lets you configure your shortcut. For instance, you can add a menu item or a toolbar button for the Ant target.
Each time you invoke the shortcut, the corresponding Ant target is executed.
Toolbar buttons corresponding to an Ant script that is part of a project will automatically disappear when the project is closed and reappear when it is opened.
Applies to: NetBeans 6.8 and later