Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Startup eclipse for another workspace
Startup eclipse for another workspace [message #591609] Mon, 09 February 2009 12:52
Kevin Russ is currently offline Kevin RussFriend
Messages: 5
Registered: July 2009
Junior Member
Hello,

I'm new to eclipse plugin-development and currently working on an
automated build-plugin.

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
configured before.

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
<some-parameter>"

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
works fine.


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,
Kevin Russ
Previous Topic:Startup eclipse for another workspace
Next Topic:Recreating Plugin from existing JAR
Goto Forum:
  


Current Time: Tue Mar 19 05:25:23 GMT 2024

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

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

Back to the top