Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Exporting an Equinox app
Exporting an Equinox app [message #68460] Mon, 20 July 2009 17:22 Go to next message
Jochen Mader is currently offline Jochen MaderFriend
Messages: 24
Registered: July 2009
Junior Member
I have a commandline eclipse equinox application, a target platform and a
run configuration (needed because I use AspectJ and I need to specify
runlevels for certain bundles).
Everything is working inside eclipse but I couldn't find a way of
exporting it.
Yes, I know that I could do it with an IApplication but I don't want to
add more eclipse dependent code.
Is there a way of doing this?
Right now I have to manually export the bundles, create the config.ini
file by editing the one in the runtime directory and adding the
simpleconfigurator.
There has to be an easier way especially because eclipse has all the
information stored.

Thanks
Jochen
Re: Exporting an Equinox app [message #68474 is a reply to message #68460] Mon, 20 July 2009 18:52 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Jochen Mader wrote:
> I have a commandline eclipse equinox application, a target platform and
> a run configuration (needed because I use AspectJ and I need to specify
> runlevels for certain bundles).
> Everything is working inside eclipse but I couldn't find a way of
> exporting it.
> Yes, I know that I could do it with an IApplication but I don't want to
> add more eclipse dependent code.
> Is there a way of doing this?
> Right now I have to manually export the bundles, create the config.ini
> file by editing the one in the runtime directory and adding the
> simpleconfigurator.
> There has to be an easier way especially because eclipse has all the
> information stored.

Create a product definition and use that along with PDE Build. It will
take care of creating the proper metadata and all that good stuff. It's
important to know that product definitions are no longer explicitly tied
to RCP applications.

Does that make sense?

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Exporting an Equinox app [message #68480 is a reply to message #68474] Mon, 20 July 2009 18:54 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
You can also look at Andrew's blog for a related example:

http://aniefer.blogspot.com/2009/07/composing-and-updating-c ustom-eclipse.html

In your product definition, only specify the identifier, application
identifier. Do not specify a product identifier since you aren't
building a traditional "RCP" application (although the argument could be
made that you're just building a headless Eclipse RCP application)

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Exporting an Equinox app [message #68489 is a reply to message #68480] Mon, 20 July 2009 19:40 Go to previous message
Jochen Mader is currently offline Jochen MaderFriend
Messages: 24
Registered: July 2009
Junior Member
Yeah, I went back to the product.
Just some notes for people who are running into this:
- create the product from your launch config
- open the configuration, the equinox launch default sets all plugins that
are not explicitly started to start in level 4, the product doesn't use
that info, so add all bundles and set them to autostart in level 4
- make sure all fields on the overview page are blank (Application has
always a preselection, at least on my install)
- if you haven't done so before add org.eclipse.simpleconfigurator to be
started in level 1

Now hit export:
Make sure that "Synchronize before exportin" is UNSELECTED, otherwise the
export will fail.

If you don't have the delta in your target platform you will now have to
copy the native fragments into the export.

There you go.
Re: Exporting an Equinox app [message #599617 is a reply to message #68460] Mon, 20 July 2009 18:52 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Jochen Mader wrote:
> I have a commandline eclipse equinox application, a target platform and
> a run configuration (needed because I use AspectJ and I need to specify
> runlevels for certain bundles).
> Everything is working inside eclipse but I couldn't find a way of
> exporting it.
> Yes, I know that I could do it with an IApplication but I don't want to
> add more eclipse dependent code.
> Is there a way of doing this?
> Right now I have to manually export the bundles, create the config.ini
> file by editing the one in the runtime directory and adding the
> simpleconfigurator.
> There has to be an easier way especially because eclipse has all the
> information stored.

Create a product definition and use that along with PDE Build. It will
take care of creating the proper metadata and all that good stuff. It's
important to know that product definitions are no longer explicitly tied
to RCP applications.

Does that make sense?

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Exporting an Equinox app [message #599628 is a reply to message #68474] Mon, 20 July 2009 18:54 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
You can also look at Andrew's blog for a related example:

http://aniefer.blogspot.com/2009/07/composing-and-updating-c ustom-eclipse.html

In your product definition, only specify the identifier, application
identifier. Do not specify a product identifier since you aren't
building a traditional "RCP" application (although the argument could be
made that you're just building a headless Eclipse RCP application)

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Exporting an Equinox app [message #599635 is a reply to message #68480] Mon, 20 July 2009 19:40 Go to previous message
Jochen Mader is currently offline Jochen MaderFriend
Messages: 24
Registered: July 2009
Junior Member
Yeah, I went back to the product.
Just some notes for people who are running into this:
- create the product from your launch config
- open the configuration, the equinox launch default sets all plugins that
are not explicitly started to start in level 4, the product doesn't use
that info, so add all bundles and set them to autostart in level 4
- make sure all fields on the overview page are blank (Application has
always a preselection, at least on my install)
- if you haven't done so before add org.eclipse.simpleconfigurator to be
started in level 1

Now hit export:
Make sure that "Synchronize before exportin" is UNSELECTED, otherwise the
export will fail.

If you don't have the delta in your target platform you will now have to
copy the native fragments into the export.

There you go.
Previous Topic:Exporting an Equinox app
Next Topic:pde build with ant doesn't embed launcher anymore since 3.5
Goto Forum:
  


Current Time: Tue Mar 19 04:01:03 GMT 2024

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

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

Back to the top