Reputation: 714
I've created a small project in NetBeans 8 (it's not Java, in fact it's config-file to launch a tool), and I wrote several targets for it (these are shell-scripts, invoking the tool). I've mapped some of these scripts to default ant targets (clean, jar, run). But I need more targets (e.g. stop) and I would like to have these additional targets in project context menu (not in the menu on the top). But i haven't found way to do it. Does anyone know how to do this?
Upvotes: 3
Views: 3421
Reputation: 2255
Creating a netbeans plugin is not very hard. It is easy to attach your own actions to the context menu of the file node, project node or of the editor.
Add your actions to
and this should cover all ant-based-project nodes.
More resources
Upvotes: 0
Reputation: 4191
For NetBeans Java Free-Form projects - you can open the Project Properties
pop-up window, go to Build and Run
and hit the Add
button. Then you can enter Ant target name (right column) and corresponding GUI name (left column) - please see below:
(I hope I've got your question correctly)
Upvotes: 1
Reputation: 714
We've found that it's impossible to vary project's context menu except by a plugin. Also adding target shortcuts to main menu is still available and easy to make.
Upvotes: 0