This post is mostly obsolete: See http://wp.me/pIpWO-n0 for an updated version.
In my previous post http://wp.me/pIpWO-5M i showed you how to create your own nbm-modules with the help of JRebel. Today i will show you how you can use JRebel to fasten up the development of the NetBeans IDE platform modules.
So if you want to use JRebel to “instantly reload” your compiled changes to a locally compiled bleeding-edge-development-version of NetBeans IDE you have to follow these steps:
- checkout the sources
- run “
ant” to compile the sources and build a NetBeans installation
- open a module to be changed from the checkout sources
- create or open
- add the line:
tryme.args=-J-noverify -J-javaagent:d:/tools/JRebel/jrebel.jar -J-Drebel.log=true(update the path to the correct installation folder)
- create or generate a
jrebel.xmlin the sourcefolder of the module – let the JRebel-plugin do this for you
- run the module against the previously compiled version of NetBeans IDE (now called “target-platform“) using the context menu-entry “Run” (you will see the default JRebel headers in the output window, which means JRebel is loaded, and the Target-IDE will be opened)
- make your changes to the code, compile via F9
- go back to “target-platform“, do your actions again and the changes are reloaded instantly
FYI: The info about the correct location was taken from http://wiki.netbeans.org/DevFaqNetBeansFullHack