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?
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With