AppBundler: wrong working directory

Michael Hall mik3hall at gmail.com
Tue Feb 28 13:41:23 PST 2012


On Feb 28, 2012, at 10:42 AM, Tobias Bley wrote:

> When I try this with Apples JavaAppLauncher with JDK6 I get
> 
> => <path-to-app-bundle>/Contents/Resources/
> 
> I suppose the problem is that the AppBundler ant task does not set the working directory into the app-bundle...

Not important but Apple's was JavaApplicationStub I think.

I'm not quite sure where you get the path you're showing?
For Apple's jvm user.dir would be set to the directory containing the application bundle. No way to know if the application had been renamed or anything.
There were macros, I guess is the term for 
$JAVAROOT    <path-to-app-bundle>/Contents/Resources/Java
$APP_BUNDLE   <path-to-app-bundle>
What I remember at the moment.
These were what allowed references within the bundle though. 


More information about the macosx-port-dev mailing list