Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Bundle/Plugin redeploy on save
Bundle/Plugin redeploy on save [message #646392] Thu, 23 December 2010 16:47 Go to next message
J Sampson is currently offline J SampsonFriend
Messages: 1
Registered: December 2010
Junior Member
My apologies if this has been asked and answered, but my searches have uncovered topics primarily related to either SpringSource of Virgo, and nothing specific to tooling or equinox/PDE specifically.

I'm trying to determine if it's possible to have the PDE (or some other eclipse functionality), automatically redeploy an OSGI bundle when I update/save java classes.

I've created a target platform which contains primarily equinox osgi bundles, and I have a very simple plugin-project based on the OSGI Simple LogService example. I can launch and refresh my bundle, but I'd like to set it to auto-refresh when I update any code.

I know that p2 can support a scanned directory, but my goal is to avoid the compile/package/deploy cycle when in the IDE. Any help or direction would be greatly appreciated.
Re: Bundle/Plugin redeploy on save [message #646495 is a reply to message #646392] Sat, 25 December 2010 15:16 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member

AFAIK there is no OSGi-level mechnism or PDE tooling for that.

However, if you run your application from Eclipse in debug mode,
hot code replacement should do the "refresh" you want. This works
only for java classes and even then not for all operations and the
Eclipse debugger lets you know when it thinks that a restart is

If you are willing to spend a few bucks, you can use Java Rebel
which eliminates most of the required restarts. However, if you
change anything in the bundle manifest or most other non-java
resource, it won't help neither.

Re: Bundle/Plugin redeploy on save [message #647154 is a reply to message #646392] Tue, 04 January 2011 19:20 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can write your own builder to deploy that bundle from within your
workspace, if you add something to your bundle classpath.

See /ui/other/
for an example.


Paul Webster .platform.doc.isv/guide/workbench.htm

Previous Topic:Cleaning temporary build files
Next Topic:Trick to make maven (osgi) project working as a pde plugin project
Goto Forum:

Current Time: Sun Sep 19 13:49:10 GMT 2021

Powered by FUDForum. Page generated in 0.02300 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top