Wiki source code of Using JRebel (previously called JavaRebel) with WOLips
Version 34.1 by Johan Henselmans on 2010/02/12 09:22
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
25.1 | 1 | JRebel (previously called javarebel is a tool from [[ZeroTurnaround>>http://www.zeroturnaround.com]]). |
![]() |
13.1 | 2 | |
![]() |
33.1 | 3 | It is a java library that makes it possible to change java code while running a project in WOLips and see the results without having to restart. It is a great timesaver. |
![]() |
17.1 | 4 | |
![]() |
25.1 | 5 | If you are running Eclipse 3.4, you should have a look at the screencast from David Avendasora at [[http://www.wocommunity.org/podcasts/WOJavaRebel_Setup.mov]]. |
6 | |||
![]() |
33.1 | 7 | If you are running WOLips 3.5.1 or bigger, you are lucky: the JRebel plugin is included in the current WOLips for there versions. |
![]() |
25.1 | 8 | |
![]() |
31.1 | 9 | === How to install and use JRebel === |
![]() |
13.1 | 10 | |
![]() |
31.1 | 11 | * Download you version from [[ZeroTurnaround>>http://www.zeroturnaround.com]] |
12 | * put the jrebel.jar somewhere nice, so you can use it in whatever project you are working | ||
![]() |
33.1 | 13 | * Go to WOLips->Preferences->Install Software, add http:~/~/www.zeroturnaround.com/update-site/ |
![]() |
13.1 | 14 | |
![]() |
31.1 | 15 | [[image:AddZeroTurnAround.png]] |
16 | |||
17 | * Download the Jrebel Eclipse Integration and perhaps the JRebel Eclipse Debugger Integration from install new Software | ||
18 | |||
19 | [[image:InstallSoftware.png]] | ||
![]() |
33.1 | 20 | |
![]() |
31.1 | 21 | |
22 | * Make sure you have checked the JRebel Plugin in WOLips if you download the newest version. | ||
23 | |||
24 | [[image:UpdateWOLipsWithJRebel.png]] | ||
25 | |||
26 | * Restart Eclipse. You will now have a Jrebel preference item in your eclipse preferences | ||
27 | * Goto to Preferences->JRebel, and point the Path to jrebel.jar to the jrebel.jar location from action 2. | ||
28 | |||
29 | [[image:PathToJRebel.png]] | ||
30 | |||
![]() |
13.1 | 31 | You have now installed and setup the stuff that WOLips needs to know about the location of JRebel.jar. |
32 | |||
![]() |
31.1 | 33 | == How do you use it? == |
![]() |
13.1 | 34 | |
35 | Well that has become very simple since the inclusion of Quinton Dolan's JRebel plugin in WOLips. | ||
36 | |||
![]() |
33.1 | 37 | For a project in which want to use jrebel to change java code while running, go to the run configuration of the project, under the contextual menu Run As->Run Configurations. |
![]() |
13.1 | 38 | |
39 | In the Run Configuration of a WOApplication you will notice an extra Tab, called JRebel. | ||
40 | |||
![]() |
33.1 | 41 | Select the tab, and check the check boxes to enable JRebel Agent and (eventually) Enable debug logging. |
![]() |
13.1 | 42 | |
![]() |
31.1 | 43 | [[image:EnableJRebel.png]] |
![]() |
13.1 | 44 | |
![]() |
33.1 | 45 | Start you project from the Run Configuration. |
![]() |
13.1 | 46 | |
![]() |
33.1 | 47 | Suddenly, you will get messages about jrebel being loaded, and some extra information about what settings are available as extra arguments. |
![]() |
15.1 | 48 | |
![]() |
33.1 | 49 | Start changing your java code on the fly: watch and start saving time. |
![]() |
31.1 | 50 | |
51 | [[image:JRebelWOLipsLog.png]] | ||
52 | |||
![]() |
33.1 | 53 | * Profit! (for the europeans: Extra Time Off!) |