[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [pde-dev] problem with p2.gathering | 
Hi Andrew,
thanks for your answer!
Luckily I got it on my own and publishing features works fine so far.
Btw.:
Is there a significant difference in introducing categories by means of 
a tranditional update site (site.xml)
or by means of a category definition file (category.xml)?
Thanks a lot!
Christian
Andrew Niefer wrote:
p2.build.repo should be a url: 
 p2.build.repo=file:${buildDirectory}/buildRepo.
You don't even have to define it yourself, since that is the default 
value.
-Andrew
From: 	Christian Schneider <chsch@xxxxxxxxxxxxxxxxxxxxxx>
To: 	pde-dev@xxxxxxxxxxx
Date: 	08/15/2009 06:45 PM
Subject: 	[pde-dev] problem with p2.gathering
Sent by: 	pde-dev-bounces@xxxxxxxxxxx
------------------------------------------------------------------------
Hi all,
I've a tricky problem while trying to set up a feature build publishing
p2 metadata.
The necessary properties are defined as follows:
p2.build.repo=${buildDirectory}buildRepo
p2.metadata.repo=file:${updatesite.autobuild}
p2.artifact.repo=file:${updatesite.autobuild}
p2.metadata.repo.name=KIELER Meta Data Repo
p2.artifact.repo.name=KIELER Artifact Data Repo
p2.compress="false"
p2.flavor=tooling
(updatesite.autobuild is defined properly!)
Due to my previous setup I generate the build scripts by means of
<ant antfile="${eclipse.pdebuild.scripts}/build.xml" target="generate"/>
To publish the artifacts I call:
<ant antfile="${buildDirectory}/assemble.de.cau.cs.kieler.core.p2.xml"/>
However the resulting output is:
    [java] main:
    [java]
    [java] gather.bin.parts:
    [java]
    [java] properties:
    [java]
    [java] init:
    [java]
    [java] publish.bin.parts:
    [java]      [copy] Copying 1 file to 
/var/lib/tomcat5.5/webapps/hudson/jobs/KIELER_core/workspace/plugins/de.cau.cs.kieler.core
    [java]
    [java] apitools.generation:
    [java] [eclipse.gatherBundle] java.lang.IllegalArgumentException: 
Location must be absolute: 
/var/lib/tomcat5.5/webapps/hudson/jobs/KIELER_core/workspace/buildRepo
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.checkValidLocation(AbstractRepositoryManager.java:659)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.contains(AbstractRepositoryManager.java:237)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.p2.publisher.Publisher.loadArtifactRepository(Publisher.java:142)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.p2.publisher.Publisher.createArtifactRepository(Publisher.java:104)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.initializeRepositories(AbstractPublisherApplication.java:98)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.initialize(AbstractPublisherApplication.java:89)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:284)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.pde.internal.build.publisher.GatherBundleTask.execute(GatherBundleTask.java:71)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Task.perform(Task.java:348)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.execute(Target.java:357)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Task.perform(Task.java:348)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Task.perform(Task.java:348)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Task.perform(Task.java:348)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.execute(Target.java:357)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Task.perform(Task.java:348)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.execute(Target.java:357)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Task.perform(Task.java:348)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.execute(Target.java:357)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [java] [eclipse.gatherBundle]                  at 
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:494)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] [eclipse.gatherBundle]                  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] [eclipse.gatherBundle]                  at 
java.lang.reflect.Method.invoke(Method.java:597)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    [java] [eclipse.gatherBundle]                  at 
org.eclipse.equinox.launcher.Main.main(Main.java:1287)
IMO is the path absolute - there are no linux links or other stuff 
involved.
To sketch the context in a nutshell:
We want to build a bunch of features for
a) publishing them on an update site
b) and reusing those builds for assembling a product (rich client
application) for several target platforms
Disregarding the metadata stuff this approach works fine ...
Hope anybody has an idea!
cheers
christian
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev
------------------------------------------------------------------------
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev