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.

  1. Expand build.xml (e.g. in the Files or Favorites tabs) to see a list of targets it contains.
  2. 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

Platforms: All

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo