[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Problem with BrandingIron for MacOS

Hi there,

I am running into a bit of a problem here when building an RCP headlessly for multiple platforms. I am building on a Linux machine and all platforms except MacOS (linux, win32) build fine. For Mac I get

java.io.FileNotFoundException: /tmp/p2.brandingIron53812/Eclipse.app/Contents/MacOS/eclipse (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.eclipse.equinox.internal.p2.core.helpers.FileUtils.zipFile(FileUtils.java:357)
	at org.eclipse.equinox.internal.p2.core.helpers.FileUtils.zip(FileUtils.java:286)
	at org.eclipse.equinox.internal.p2.core.helpers.FileUtils.zip(FileUtils.java:251)
	at org.eclipse.equinox.p2.publisher.AbstractPublisherAction.publishArtifact(AbstractPublisherAction.java:479)
	at org.eclipse.equinox.p2.publisher.eclipse.EquinoxExecutableAction.publishExecutableIU(EquinoxExecutableAction.java:122)
	at org.eclipse.equinox.p2.publisher.eclipse.EquinoxExecutableAction.perform(EquinoxExecutableAction.java:65)
        [snip]

The problem seems to be that the EquinoxExecutableAction and the BrandingIron don't agree on where the files should be. The BrandingIron brands the files to ${appname}/Contents/MacOS/${appname}, ${appname}/Contents/MacOS/${appname}.ini etc., but does not update the EquinoxExecutableAction's ExecutablesDescriptor. So the EquinoxExecutableAction expects them in Eclipse.app/Contents/MacOS/${appname}, Eclipse.app/Contents/MacOS/eclipse.ini etc.

Is there a way around this? I tried both "eclipse" and "Eclipse" for the app name, but at some point, I always run into the FileNotFound. With "eclipse", it is the non-existant Eclipse.app dir (which is eclipse.app then), with "Eclipse" it is the non-existant eclipse.ini (which is Eclipse.ini).

My p2 publisher plugin is version org.eclipse.equinox.p2.publisher_1.0.0.v20090527-1812.


cheers, Carsten