简体   繁体   中英

Eclipse plugin hot deploy

I'm developing an Eclipse plugin, and I test it launching a secondary Eclipse instance using Run As -> Eclipse Application in my project.

So far so good. However, every time I make a source code change (in Java) I need to close this secondary Eclipse instance and start it again to see my code changes being run.

Do you know of any hot deploy option for an Eclipse plugin ? It would save me time since Eclipse is slow to load back again and again.

I guess I got used to Tomcat that implements hot deploy. The moment you save your Java source file Tomcat automatically deploys it behind the scenes. It doesn't deploy the whole application, but just the modified class -- something that takes just a few milliseconds.

Using " Debug " instead of " Run " should be enough. If this doesn't work, check in the Preferences in Java > Debug that " Enable hot code replace " is on. Also make sure that " Build Automatically " is selected in the " Project " menu. (Or manually invoke " Build " after saving)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM