Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328591

Summary: eclipse.gatherBundle fails to add symlink to bundle
Product: [Eclipse Project] Equinox Reporter: Jacek Pospychala <jacek.pospychala>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Jacek Pospychala CLA 2010-10-25 08:07:28 EDT
one of my plugins contains a symlink to filesystem file that is expected to exists in target OS:
plugin\xulrunner\plugins\Flash Plugin.plugin -> /Library/Mozilla/Plugins/Flash Plugin.plugin

When running the build, the symlink file destination obviously doesn't exist and build system is failing to build plugin in eclipse.gatherBundle step (see log below).

This was working before, I think at least when using basebuilder R36_M4. Could this start working again?


[eclipse.gatherBundle] Generating metadata for ..
[eclipse.gatherBundle] java.io.FileNotFoundException: /disk2/hudson/jobs/org.mozilla.xulrunner.7_3/workspace/build/plugins/org.mozilla.xulrunner.carbon.macosx/org.mozilla.xulrunner.carbon.macosx_1.9.1.0_v20100402-1600/xulrunner/plugins/Flash Player.plugin (No such file or directory)
[eclipse.gatherBundle] 	at java.io.FileInputStream.open(Native Method)
[eclipse.gatherBundle] 	at java.io.FileInputStream.<init>(FileInputStream.java:106)
[eclipse.gatherBundle] 	at org.eclipse.equinox.internal.p2.core.helpers.FileUtils.zipFile(FileUtils.java:357)
[eclipse.gatherBundle] 	at org.eclipse.equinox.internal.p2.core.helpers.FileUtils.zip(FileUtils.java:286)
[eclipse.gatherBundle] 	at org.eclipse.equinox.internal.p2.core.helpers.FileUtils.zip(FileUtils.java:251)
[eclipse.gatherBundle] 	at org.eclipse.equinox.p2.publisher.AbstractPublisherAction.publishArtifact(AbstractPublisherAction.java:469)
[eclipse.gatherBundle] 	at org.eclipse.pde.internal.build.publisher.GatherBundleAction.publishArtifact(GatherBundleAction.java:48)
[eclipse.gatherBundle] 	at org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.generateBundleIUs(BundlesAction.java:688)
[eclipse.gatherBundle] 	at org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.perform(BundlesAction.java:596)
[eclipse.gatherBundle] 	at org.eclipse.pde.internal.build.publisher.GatherBundleAction.perform(GatherBundleAction.java:43)
[eclipse.gatherBundle] 	at org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
[eclipse.gatherBundle] 	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.executeBatch(SimpleArtifactRepository.java:1034)
[eclipse.gatherBundle] 	at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:231)
[eclipse.gatherBundle] 	at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:299)
[eclipse.gatherBundle] 	at org.eclipse.pde.internal.build.publisher.GatherBundleTask.execute(GatherBundleTask.java:71)
[eclipse.gatherBundle] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[eclipse.gatherBundle] 	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
[eclipse.gatherBundle] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[eclipse.gatherBundle] 	at java.lang.reflect.Method.invoke(Method.java:597)
[eclipse.gatherBundle] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[eclipse.gatherBundle] 	at org.apache.tools.ant.Task.perform(Task.java:348)
[eclipse.gatherBundle] 	at org.apache.tools.ant.Target.execute(Target.java:357)
.....
Comment 1 Jacek Pospychala CLA 2010-10-25 08:15:06 EDT
or maybe it used to work previously because build was not using p2.gathering... not sure, I'm rarely running that build.
Comment 2 Jacek Pospychala CLA 2010-10-25 12:42:17 EDT
whops! turned out I've been only experimenting with symlinks, but never got them to working as I said in previous comments. If this never worked, then let's mark as INVALID.