Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Headless build problems
Headless build problems [message #604888] Thu, 04 March 2010 23:29 Go to next message
Eugene Ostroukhov is currently offline Eugene OstroukhovFriend
Messages: 66
Registered: July 2009
Member
We have Eclipse 3.5.1-based product. We are trying to do nightly builds using headless builder.

1. Launchers on Mac and Linux are not executible (user needs to do chmod +x) if we enable P2 metadata generation (i.e. set the following properties:
p2.gathering=true
generate.p2.metadata=true
p2.flavor=tooling
p2.metadata.repo=file:${buildDirectory}/repo
p2.artifact.repo=file:${buildDirectory}/repo
p2.publish.artifacts=true

2. We need to change default workspace location. Can we somehow change only one parameter in config.ini?
Re: Headless build problems [message #604889 is a reply to message #604888] Fri, 05 March 2010 00:35 Go to previous messageGo to next message
Eugene Ostroukhov is currently offline Eugene OstroukhovFriend
Messages: 66
Registered: July 2009
Member
Re: issue2

The application is configured with "simpleconfigurator" if we use default config.ini. It will not use simpleconfigurator if I use config.ini that has single line:
osgi.instance.area.default=@user.home/Documents/WRT Workspaceupdated

How do I make it use simpleconfigurator?
Re: Headless build problems [message #604989 is a reply to message #604888] Wed, 10 March 2010 19:02 Go to previous messageGo to next message
Eugene Ostroukhov is currently offline Eugene OstroukhovFriend
Messages: 66
Registered: July 2009
Member
> . Launchers on Mac and Linux are not executible

https://bugs.eclipse.org/bugs/show_bug.cgi?id=282260 describes this problem and a solution:
"If you are building headless, you can specify that the native "zip" be used directly using the archiveFormat property. eg:
archivesFormat=macosx,cocoa,x86-zip
"folder" will also work here, though there may be problems if you are building more than one platform:
archivesFormat=macosx,cocoa,x86-folder"

I used "zip" for Windows, Mac and Linux (the build machine is Linux) and it worked.
Re: Headless build problems [message #604993 is a reply to message #604888] Wed, 10 March 2010 23:54 Go to previous message
Eugene Ostroukhov is currently offline Eugene OstroukhovFriend
Messages: 66
Registered: July 2009
Member
Second issue can be fixed if instead of modifying config.ini we use p2.inf. Foolowing code worked for us (taken from Eclipse SDK build):
requires.1.namespace=org.eclipse.equinox.p2.iu
requires.1.name=toolingorg.eclipse.configuration.win32
requires.1.filter=(osgi.os=win32)
requires.1.range=[1.0.0,1.0.0]
requires.1.greedy=true

requires.2.namespace=org.eclipse.equinox.p2.iu
requires.2.name=toolingorg.eclipse.configuration
requires.2.filter=(!(osgi.os=win32))
requires.2.range=[1.0.0,1.0.0]
requires.2.greedy=true

units.1.id=toolingorg.eclipse.configuration.win32
units.1.version=1.0.0
units.1.provides.1.namespace=org.eclipse.equinox.p2.iu
units.1.provides.1.name=toolingorg.eclipse.configuration.win 32
units.1.provides.1.version=1.0.0
units.1.filter=(osgi.os=win32)
units.1.touchpoint.id=org.eclipse.equinox.p2.osgi
units.1.touchpoint.version=1.0.0
units.1.instructions.configure=setProgramProperty(propName:o sgi.instance.area.default,propValue:@user.home/My Documents/WRT Workspace);
units.1.instructions.unconfigure=setProgramProperty(propName :osgi.instance.area.default,propValue:);

units.2.id=toolingorg.eclipse.configuration
units.2.version=1.0.0
units.2.provides.1.namespace=org.eclipse.equinox.p2.iu
units.2.provides.1.name=toolingorg.eclipse.configuration
units.2.provides.1.version=1.0.0
units.2.filter=(!(osgi.os=win32))
units.2.touchpoint.id=org.eclipse.equinox.p2.osgi
units.2.touchpoint.version=1.0.0
units.2.instructions.configure=setProgramProperty(propName:o sgi.instance.area.default,propValue:@user.home/Documents/WRT Workspace);
units.2.instructions.unconfigure=setProgramProperty(propName :osgi.instance.area.default,propValue:);
Previous Topic:Headless build problems
Next Topic:Simple Plugin Deployment
Goto Forum:
  


Current Time: Fri Mar 29 10:45:09 GMT 2024

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

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

Back to the top