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
Hi

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
required.

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.

HTH
Michael
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
http://dev.eclipse.org/viewcvs/viewvc.cgi/platform-incubator /ui/other/org.eclipse.ui.tools/
for an example.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .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: Tue Apr 16 10:46:24 GMT 2024

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

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

Back to the top