Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [p2]Location must be absolute error although it is an absolute path
[p2]Location must be absolute error although it is an absolute path [message #735033] Mon, 10 October 2011 17:18 Go to next message
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 579
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I'm trying to use p2 director to have a multi-platform product after a PDE build.
I'm using this called for each configuration:
<java classname="org.eclipse.equinox.launcher.Main"  maxmemory="2048m" fork="true" failonerror="true">
  <classpath>
    <path id="launcher.path.id">
	<fileset dir="${eclipse.base.platform}/plugins" includes="org.eclipse.equinox.launcher_*.jar"/>
	</path>
  </classpath>
	<arg value="-application" />
	<arg value="org.eclipse.equinox.p2.director" />
	<arg value="-repository"/>
	<arg value="${buildDirectory}/buildRepo"/>
	<arg value="-bundlepool" />
	<arg value="${baseLocation}/bundlepool" />
	<arg value="-shared" />
	<arg value="${baseLocation}/bundlepool/p2" />
	<arg value="-installIU" />
	<arg value="org.bonitasoft.studio.product" />
	<arg value="-destination" />
	<arg value="${baseLocation}/bundlepool/${conf}" />
	<arg value="-profile" />
	<arg value="BonitaStudio_${conf}" />
	<arg value="-consoleLog" />
	<jvmarg line="-Xms2048m -Xmx2048m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=pdeBuild.hprof"/>
</java>


And here is the error:
[java] !ENTRY org.eclipse.osgi 4 0 2011-10-10 19:00:51.100
     [java] !MESSAGE Application error
     [java] !STACK 1
     [java] java.lang.IllegalArgumentException: Location must be absolute: /media/bonita/hudson/allInOne-p2/all-in-one/productBuildDirectory/build/buildRepo
     [java] 	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.checkValidLocation(AbstractRepositoryManager.java:737)
     [java] 	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.contains(AbstractRepositoryManager.java:249)
     [java] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.initializeRepositories(DirectorApplication.java:379)
     [java] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.run(DirectorApplication.java:796)
     [java] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.start(DirectorApplication.java:954)
     [java] 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     [java] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
     [java] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
     [java] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
     [java] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:597)
     [java] 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
     [java] 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
     [java] 	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
     [java] 	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)


So as you see it complains that th epath i snot absolute although it is.

Does anyone have an idea?
Thanks by advance fo rany help

Regards,


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Re: [p2]Location must be absolute error although it is an absolute path [message #735036 is a reply to message #735033] Mon, 10 October 2011 17:39 Go to previous message
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 579
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

ok, I should have look into the code a little bit...
An URI to be absolute must have the scheme. SO i need to put file:// before the path. Not tried yet but it seems to be the issue.


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Previous Topic:org.eclipse.core.runtime.applications
Next Topic:bundles.info
Goto Forum:
  


Current Time: Mon Dec 22 22:18:23 GMT 2014

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

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