| [news.eclipse.tools.buckminster] Re: Build fails after headless resolve using p2 |
Thomas Hallgren wrote:
Hi Scott,
The second problem looks as a bug. Can you please enter a bugzilla on that
so we don't loose track of it?
Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=286860
Let me know if you need any help reproducing the first issue.
Thank you, -- Scott
I'm on vacation now (back on Monday) so some things are moving slower thenothers. I'll take a look problem #1 when I
get back.
Regards, Thomas Hallgren
Scott Hendrickson wrote:/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/configuration/org.eclipse.osgi/bundles/80/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:117:Hi Thomas,
Thanks for your response. I've done as you suggested and the org.eclipse.emf plugin is now placed in a "target" folder that I've added to the target platform definition. However, when I still get the following error:
1) edu.uci.isr.infrastructure.update_site_with_feature/${sp:manifest} doesn't exist (details below: [1])
NOTE: I updated the build script to insert the local path manually for the location using an xstl.
I also noticed that when I execute a lsprefs command, I now get the following exception:
2) "Active target 'Eclipse SDK with delta pack' is too complex to be represented by a single path" (details below: [2]). This should probably report the issue, but not throw an exception - halting the process.
The second issue is not a show stopper, I just commented out these commands. But, I'm not sure what to do to fix the fist issue.
The update site's buckminster.cspec was created using the instructions here:
http://wiki.eclipse.org/Building_an_Update_Site_using_Buckminster
So, I think I have everything in there (and this used to work), but I'm not sure what I need to do to fix it.
Any ideas?
Thanks, -- Scott
-------------- [1] --------------
[java] !ENTRY org.eclipse.buckminster.core 4 293 2009-08-05 09:06:09.085
[java] !MESSAGE org.eclipse.core.runtime.CoreException:
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/configuration/org.eclipse.osgi/bundles/80/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:53:The following error occurred while executing this line:
[java]
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/workspace/edu.uci.isr.infrastructure.update_site_with_feature/${sp:manifest}
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/configuration/org.eclipse.osgi/bundles/80/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:117:doesn't exist
[java] !STACK 1
[java] org.eclipse.core.runtime.CoreException:
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/configuration/org.eclipse.osgi/bundles/80/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:53:The following error occurred while executing this line:
[java]
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/workspace/edu.uci.isr.infrastructure.update_site_with_feature/${sp:manifest}
org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:189)doesn't exist
[java] at
org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:281)
[java] at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:352)
[java] at
org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:201)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:361)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:405)
[java] at
org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:191)
[java] at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:118)
[java] at
org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:155)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
[java] at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:341)
[java] at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:135)
[java] at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:189)
[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:368)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/configuration/org.eclipse.osgi/bundles/80/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:117:
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
[java] Caused by:
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/configuration/org.eclipse.osgi/bundles/80/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:53:The following error occurred while executing this line:
[java]
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/workspace/edu.uci.isr.infrastructure.update_site_with_feature/${sp:manifest}
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)doesn't exist
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[java] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/configuration/org.eclipse.osgi/bundles/80/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:53:
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:344)
[java] ... 23 more
[java] Caused by:
/home/scott/infrastructure/bitten/slaves/java1.5-eclipse3.4/buckminster/workspace/edu.uci.isr.infrastructure.update_site_with_feature/${sp:manifest}
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)doesn't exist
[java] at org.apache.tools.ant.taskdefs.LoadResource.execute(LoadResource.java:142)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at
org.eclipse.buckminster.runtime.BuckminsterException.fromMessage(BuckminsterException.java:64)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
[java] ... 43 more
-------------- [2] --------------
[java] org.eclipse.buckminster.pde.targetPlatformPath
[java] Description: Set the active Target Platform to a definition that appoints a path
[java] org.eclipse.core.runtime.CoreException: Active target 'Eclipse SDK with delta pack' is too complex to be represented by a single path
[java] at
org.eclipse.buckminster.runtime.BuckminsterException.fromMessage(BuckminsterException.java:59)
[java] at
org.eclipse.buckminster.pde.prefs.TargetPlatformPathHandler.get(TargetPlatformPathHandler.java:51)
[java] at
org.eclipse.buckminster.core.commands.ListPreferences.run(ListPreferences.java:93)
[java] at
org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:155)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
[java] at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:341)
[java] at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:135)
[java] at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:189)
[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:368)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at
resourceMap="http://tps.ics.uci.edu/svn/projects/infrastructure/trunk/infrastructure/tps.ics.uci.edu.rmap">
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
[java] Active target 'Eclipse SDK with delta pack' is too complex to be represented by a single path
Thomas Hallgren wrote:
Hi Scott,
You don't have any installLocation set for your p2 materializer so youprobably hit what's described here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285449
You can try the following:want to materialize into your TP.
1. Create an empty folder that will be the destination for the things you2. Add this folder as a "Directory" to your active TP.
That should do the trick.
HTH, Thomas Hallgren
Scott Hendrickson wrote:Any suggestions? Is anyone else able to successfully perform this build (note: this is very small. It checks out a feature, which includes a single prodjct, which depends on org.eclipse.emf). I'll include the relevant files, below, in case that helps anyone in figuring out what's going on.
I made the ant build script so that it would be easy for someone else to see what I'm doing and reproduce the error. I hope it helps!
Thank you, -- Scott
------------------------------ Target Platform:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?pde version="3.5"?>
<target name="Eclipse SDK with delta pack">
<locations>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.sdk.ide" version="3.4.2.M20090211-1700"/>
<repository location="http://download.eclipse.org/eclipse/updates/3.4"/>
</location>
</locations>
</target>
------------------------------ MSPEC:
<?xml version="1.0" encoding="UTF-8"?>
<md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
name="workspace materializer by default, P2 otherwise"
shortDesc="update_site_workspace_p2"
materializer="workspace"
conflictResolution="UPDATE"
url="./update_site.cquery" >
<md:property key="eclipse.version" value="3.4"/>
<md:mspecNode namePattern="^org.eclipse(.[^.]+)*$" materializer="p2" conflictResolution="UPDATE" />
</md:mspec>
------------------------------ CQUERY:
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
C:Usersscotteclipseworkspacesbuck-testedu.uci.isr.infrastructure.buckminster_build_testtempbuckminsterworkspacepluginsedu.uci.isr.infrastructure.project_requiring_emfMETA-INFMANIFEST.MF,
<cq:rootRequest name="edu.uci.isr.infrastructure.update_site_with_feature" componentType="buckminster"/>
<cq:property key="eclipse.version" value="3.4"/>
<cq:advisorNode namePattern="^edu.uci.isr..*$" useTargetPlatform="false" branchTagPath="main"/>
</cq:componentQuery>
------------------------------ Result from build:
"Error: file
line 7: Bundle 'org.eclipse.emf' cannot be resolved"
------------------------------ Result from running the action (and skipping the build):
${sp:manifest} is undefined