Re: Use the "Run" button on the toolbar for a specific maven project
Panayotis Katsaloulis <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Thank you! This did the trick!!! Now I need to gather my pieces together and see what I can accomplish. On 3 October 2016 at 21:38:55, Jarmo Isotalo ([email protected]) wrote: Hey, This might be helpful: https://github.com/testmycode/tmc-netbeans/blob/master/tmc-plugin/src/fi/helsinki/cs/tmc/spyware/eventsources/ProjectActionCaptor.java -Jarmo On Mon, Oct 3, 2016 at 9:30 PM, Panayotis Katsaloulis <[email protected]> wrote: Hello all I am trying to create e plugin for a specific type of maven jar project. In this project "Run" is customizable in a way that Netbeans nb-actions.xml does not suffice. Ideally I'd like to have a way to "capture" this specific action and "override" it with my own actions, like for example add a specific profile to the currently selected profiles -- or in any other way possible to let me call my own java code, instead of the default one. I was even considering using another package format instead of "jar", if this makes things easier, since only "jar" format "enables" the "Run" button (although I'd prefer to stick to the "jar" package). Taking into account that the "war" project also supports "Run", and can really do something completely irrelevant, I believe this is possible, but I don't know how. Can you direct me to some information on how to accomplish this? Thanks in advance. -- Panayotis Katsaloulis -- Panayotis Katsaloulis