|Startup eclipse for another workspace [message #591609]
||Mon, 09 February 2009 12:52
| Kevin Russ
Registered: July 2009
I'm new to eclipse plugin-development and currently working on an
My plugin allows to schedule build-tasks (continous, nightly, weekly,...)
and it's required for some tasks to start a new eclipse instance on a
specific location in order to create a new workspace for the build.
On the new workspace my plugin performs an import of all preferences of
the original one, to enable e.g. repository checkout and other stuff, as
I'm starting the new eclipse instance via Runtime.excec() on a generated
bat-file,- so far I've tried two different ways:
1) by calling eclipse.exe
"<eclipse-path>/eclipse.exe -data <workspace-path> -myPlugin
2) by the equinox launcher
"java -jar <eclipse-path>/org.eclipse.equinox.launcher_*.jar -data
<workspace-path> -myPlugin <some-parameter>"
In both cases, the new eclipse instance popups and my plugin tries to
perform the build, but unfortunatelly the imported preferences seems not
to work (e.g. no repository connected).
If I open the new created workspace manually for a second time, everything
For the preference export/import i'm using
Platform.getPreferencesService() on the root-node. The Eclipse-Version is
3.4.0 (Platform: Windows XP).
Does somebody have an Idea what I'm missing here, or is this way of doing
things totaly wrong ??
Thanks a lot,
Powered by FUDForum
. Page generated in 0.02812 seconds