NetBeans Quick Tip #13 - Define a Shortcut for Ant Target



Did you know that it's possible in NetBeans to define easily a keyboard shortcut for an ant target? Just add your custom ant target to build.xml (through Files view). When this file is opened you can see the list of all targets in navigator. You can right-click on any of these targets to define a shorcut:


When you invoke the shortcut, the corresponding ant target is executed. So you can take advantage of ant's power by pressing a single key combination. Similarly you can add a menu item or a toolbar button for the ant target:


Tight integration of NetBeans with ant is a great thing, notice how many things are possible - Geertjan has in his blog a huge collection of tips how to (mis)use ant integration.

Ah, I just noticed that Geertjan already blogged about defining shortcuts for ant targets. I'm not original this time.
Comments:

Post a Comment:
Comments are closed for this entry.
About

Roman Strobl

Search

Archives
« duben 2014
PoÚtStČtSoNe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today