Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Running as if I were pointed to an installation
Running as if I were pointed to an installation [message #597991] Mon, 01 June 2009 07:25
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
In my "RCP" product, I have an API which is distributed through a JAR
file. It has a few top-level API classes, and when you call one of them,
it starts the Eclipse framework using the EclipseStart stuff (through
reflection). This way the caller only needs my little JAR file.

This has all been working great, and I have been sucessfully testing it by
pointing the osgi.instance.area to a real Eclipse deployment of my product
(complete with configuration, plugins, features directories).

The downside of testing like this is that I need to do the batch
build/export to make this kit to point to, rather than pointing directly
to the binaries in my workspace. So now I'm trying to make this work (I
know it's possible, since that's what PDE does when it runs).

What's happening is that it is getting into my code in the Eclipse
install, but it's dying because the org.eclipse.core.resources bundle was
not started. So somehow that's not happening (and probably other things
are not happening as well).

Details of the configuration follow.

Any help is appreciated!

Thanks,
Francis

------------------------------------------------------------
I'm testing with the following properties:

osgi.noShutdown=true,
eclipse.application=com.oaklandsw.transform.runtime.engine,
osgi.install.area=/home/francis/d/transform/com.oaklandsw.tr ansform.tests.mule/deploy,
osgi.parentClassloader=fwk,
osgi.framework=file:/usr/local/eclipse_deploy/eclipse341/ecl ipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar,
osgi.instance.area=/tmp/osdtWorkspace15181.tmp

And the contents of the osgi.install.area is only:

configuration
org.eclipse.equionox.simpleconfigurator
bundles.info
config.ini
dev.properties

My config.ini looks like this:

osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start,org.eclipse.equinox.simpleconfigurator@1\:start
osgi.bundles.defaultStartLevel=4
eclipse.p2.profile=OSDTProfile
eclipse.p2.data.area=@config.dir/../p2

My dev.properties is:

com.oaklandsw.transform.external.qizxopen=bin
com.oaklandsw.transform.runtime.api=bin
com.oaklandsw.util=bin
com.oaklandsw.transform.external.xstream=bin
com.oaklandsw.transform.external.mxquery=bin
com.oaklandsw.util.tests=bin
com.oaklandsw.transform.runtime=bin,binexample
com.oaklandsw.transform.external.mule=bin
com.oaklandsw.transform.tests=bin
com.oaklandsw.gui=bin
com.oaklandsw.data.standard.x12.scripts=bin
com.oaklandsw.transform.external.saxon9=bin
com.oaklandsw.transform.external.hibernate33=target/classes
com.oaklandsw.transform.external.saxon9sa=bin
com.oaklandsw.transform.examples=bin
com.oaklandsw.data.standards.x12.3050=bin
com.oaklandsw.base=bin
com.oaklandsw.transform.runtime.servlet=build/classes
com.oaklandsw.util.log4j=bin
com.oaklandsw.gui.tests=bin
com.oaklandsw.transform.external.quickbooks=bin
com.oaklandsw.transform.external.cb2xml=bin
com.oaklandsw.transform=bin
com.oaklandsw.util.log=bin
com.oaklandsw.build=bin
com.oaklandsw.base.tests=bin
@ignoredot@=true
com.oaklandsw.transform.external.qexo=bin
com.oaklandsw.transform.external.saxon89=bin
com.oaklandsw.transform.tests.mule=bin

And my bundles.info has all of the plugins and their locations.




--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm

http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go


Previous Topic:Zooming not workin properly in canvas
Next Topic:Language Pack Eclipse 3.4.2
Goto Forum:
  


Current Time: Fri Apr 19 09:55:39 GMT 2024

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

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

Back to the top