Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » PDE build workspace location
PDE build workspace location [message #881581] Mon, 04 June 2012 21:41 Go to next message
Glenn Burkhardt is currently offline Glenn BurkhardtFriend
Messages: 4
Registered: July 2009
Junior Member
I notice that PDE headless builds make use of the directory "workspace" in the user's home directory. This can cause a conflict if the same directory is being used for development with Eclipse.

If the directory doesn't exist, the PDE build creates it. That's good, since to make sure I get a clean build, I'll delete any existing "workspace" directory.

Is there a way to configure the location of the "workspace" directory the PDE build uses? And what part of the build process is creating it, anyway?
Re: PDE build workspace location [message #881858 is a reply to message #881581] Tue, 05 June 2012 11:47 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Some part of the pde build plugins used by the pde build tasks must reference the Instance location (the workspace). You're using org.eclipse.ant.core.antRunner to run your build, right?

As a workaround you could try launching your build with: -data $HOME/buildWorkspace

PW


Re: PDE build workspace location [message #881872 is a reply to message #881858] Tue, 05 June 2012 12:06 Go to previous messageGo to next message
Glenn Burkhardt is currently offline Glenn BurkhardtFriend
Messages: 4
Registered: July 2009
Junior Member
Yes, I'm using org.eclipse.ant.core.antRunner.

And thanks, your suggestion works.

What program uses "-data"? I haven't been able to find it documented anywhere.
Re: PDE build workspace location [message #881876 is a reply to message #881858] Tue, 05 June 2012 12:09 Go to previous messageGo to next message
Glenn Burkhardt is currently offline Glenn BurkhardtFriend
Messages: 4
Registered: July 2009
Junior Member
Another workaround I found was to define "user.home" to the JVM with "-Duser.home=somedirectory", but using the "-data" option is better since it lets one specify the workspace directory name. Defining "user.home' changes the location of the workspace directory, but not its name.
Re: PDE build workspace location [message #882293 is a reply to message #881581] Wed, 06 June 2012 07:43 Go to previous messageGo to next message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

Hi Glenn,
I'm not aware that PDE headless build uses workspace (in sense of
workspace that you are choosing at the Eclipse IDE launch time).

It's a bad practice to share this folder for both Eclipse IDE and PDE
headless build.

You should always prefer to copy features and plugins comprising your
project out of Eclipse workspace (or check it out from SCM) to folder
specified in "baseLocation" PDE Build property
(http://help.eclipse.org/indigo/topic/org.eclipse.pde.doc.user/tasks/pde_product_build.htm
and in particular
http://help.eclipse.org/indigo/topic/org.eclipse.pde.doc.user/reference/pde_builder_config.htm).

Libor

On 06/04/2012 11:41 PM, Glenn Burkhardt wrote:
> I notice that PDE headless builds make use of the directory "workspace"
> in the user's home directory. This can cause a conflict if the same
> directory is being used for development with Eclipse.
>
> If the directory doesn't exist, the PDE build creates it. That's good,
> since to make sure I get a clean build, I'll delete any existing
> "workspace" directory.
>
> Is there a way to configure the location of the "workspace" directory
> the PDE build uses? And what part of the build process is creating it,
> anyway?
>
Re: PDE build workspace location [message #882386 is a reply to message #882293] Wed, 06 June 2012 11:13 Go to previous messageGo to next message
Glenn Burkhardt is currently offline Glenn BurkhardtFriend
Messages: 4
Registered: July 2009
Junior Member
> I'm not aware that PDE headless build uses workspace (in sense of
> workspace that you are choosing at the Eclipse IDE launch time).

The PDE builder uses a directory named "workspace" in ${user.home} to copy some info about plugins its using. If the directory doesn't exist, it's created.

> It's a bad practice to share this folder for both Eclipse IDE and PDE
> headless build.

Agreed, and that's why I wanted a way to specify exactly where the PDE build workspace is, so that building was controlled and wasn't affected by other things.

There are two ways.

1. Use "-data" to explicitly specify a directory, which by the way, doesn't need to be called "workspace".

2. Set the property "user.home" on the command line. The workspace directory used will be "${user.home}/workspace".
Re: PDE build workspace location [message #883452 is a reply to message #881872] Fri, 08 June 2012 15:07 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Glenn Burkhardt wrote on Tue, 05 June 2012 08:06
What program uses "-data"? I haven't been able to find it documented anywhere.


That's part of the standard eclipse framework set of options.

You can see -data and others at http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

PW


Previous Topic:Config file of CVS Repository
Next Topic:"There is no disk in the drive." warning message
Goto Forum:
  


Current Time: Tue Mar 19 09:30:12 GMT 2024

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

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

Back to the top