JRebel 热插件使用手记

1.1 安装IDE-rebel插件
1.        Eclipse下选择帮助-软件更新-添加更新地址

jrebel3.1 http://www.zeroturnaround.com/update-site/

或是选择离线下载

http://www.zeroturnaround.com/update-site/update-site.zip

(The WTP plugin is only necessary if you run the server from Eclipse.)


2.        重启eclispe

注:其它IDE安装,可以见jrebel3包下的doc\index.html ,包括IntelliJ IDEA ,Netbeans 6.5, Maven 2.x

1.2 配置jrebel路径、调试
1.        设置jrebel包位置
         To use JavaRebel in the Run Configurations later on we’ll need to set a global location of the javarebel.jar. You can do this from Window » Preferences » JavaRebel. Just pinpoint the path to your javarebel.jar location.

2.        设置jrebel debug 过滤器包
       Go to Window » Preferences and from there to Java » Debug » Step Filtering.

Check Use Step Filters, Filter synthetic methods, and Step through filters. Now check all the default filters and use the Add Filter button to add com.zeroturnaround.* and org.zeroturnaround.*.




设置自动编译
Now go to Project » Build automatically and make sure it is checked.

1.3 自动生成rebel.xml文件
1.        创建工程完成后,生成rebel.xml文件用以配置class文件位置;


2.        添加JVM加载项,打开日志功能;调试rebel在controll输出日志;

3.        重启服务器,输出日志


更多图示:

http://www.zeroturnaround.com/jrebel/eclipse-jrebel-tutorial/
1.4   重启tomcat后jrebel日志输出,被监视的目录


#############################################################

JRebel 3.1 (201006011508)

   with Enterprise Add-On! (see http://jrebel.com/enterprise)

(c) Copyright ZeroTurnaround OU, Estonia, Tartu.


Over the last 1 days JRebel prevented

at least 1 redeploys/restarts saving you about 0 hours.


This product is licensed to Unlimited

For FUN! Unlimited! Enjoy!

……
#############################################################

JRebel: Directory 'E:\\webapp\admin\build\classes' will be monitored for changes.


1.5进行JAVA调试工作,即时保存即时刷新,加载类不再重启服务



相关资源:

官网:http://www.zeroturnaround.com/jrebel/eclipse-jrebel-tutorial/

jrebel 3.1 下载 http://www.zeroturnaround.com/jrebel/current/

jrebel 插件 http://www.zeroturnaround.com/jrebel/plugins/

FAQ:http://www.zeroturnaround.com/jrebel/faq/#How_does_JRebel_work



构建rebel.xml
Click on your project and pick Generate rebel.xml.



你可能感兴趣的:(eclipse,maven,xml,ide,Netbeans)