Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Rootfiles and OSX

Hi Alex,
thank you very much for you answer!

If there is a bug, it's that the platform instance location isn't being correctly calculated on OSX rather than anything else. 

So do you think the workspace should rather be in X.app/Eclipse/workspace and Platform.getInstanceLocation() should return that folder as well? I think that would fix my issue.

We are using the rootfile feature to add a file to the workspace which can then later be retrieved by the application. But maybe this is not the correct way to do this and there a better way to do this with Tycho?
On other platforms, everything is working as expected because the workspace folder happens to be in the root directory which is in line with Platform.getInstanceLocation(). But on OSX the root is X.app/Eclipse and the workspace is not in X.app/Eclipse/workspace but X.app/MacOS/workspace. 

I could solve my javaagent problem by specifying a custom .ini for OSX containing -javaagent:../Eclipse/byte-buddy-agent-1.3.19.jar.

Maybe the -data flag needs to be set to Eclipse instead of MacOS (see http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html).

How should we proceed now? Create an issue? 

Thanks,
Felix

Alex Blewitt <alex.blewitt@xxxxxxxxx> schrieb am Mi., 11. Mai 2016 um 17:01 Uhr:
The MacOS directory contains the executable "eclipse" but all of the other Eclipse-specific things are stored in the Contents/Eclipse folder. It would seem like a bug that the platform instance location is returning the MacOS folder, but there may be a bug by which it assumes that the platform instance location is relative to the eclipse executable itself. It would be worth looking at the launcher(s) to see if there is special case that determines where this lies on OSX and to see if that's something that your product needs to replicate. 

If there is a bug, it's that the platform instance location isn't being correctly calculated on OSX rather than anything else. 

Alex

Sent from my iPhat 6

On 11 May 2016, at 12:36, Felix B <felix.barnsteiner@xxxxxxxxx> wrote:

Hi,
I have some trouble with the root property in build.properties in combination with OSX builds. For example, when following this demo application: https://wiki.eclipse.org/Tycho/Demo_Projects/RCP_Application, the root files are placed inside org.eclipse.tycho-demo/itp04-rcp/eclipse-repository/target/products/example.product.id/macosx/cocoa/x86_64/Eclipse.app/Contents/Eclipse. I think this is the wrong directory and should be Eclipse.app/Contents/MacOS instead.

Accessing org.eclipse.core.runtime.Platform.getInstanceLocation() returns Eclipse.app/Contents/MacOS and thus fails when trying to load files from this Location. Also, want to use the root files feature to add an agent jar which I can reference relatively like so: -javaagent:byte-buddy-agent-1.3.19.jar. This only works when the jar is placed inside the MacOS folder.

Is there any way to modify the default OSX rootfile location from Eclipse to MacOS? May this be a bug in Tycho itself?


Thank you,

Felix

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

Back to the top