AppBundler: wrong working directory

Tobias Bley tobi at ultramixer.com
Tue Feb 28 08:42:24 PST 2012


Hi,

When I create an *.app with the new AppBundler ant task I don't get the right working directory.

File workingDirectory = new File(".").getAbsolutePath();

=> /Users/<username>


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...

Any suggestions?

Best regards,
Tobi







More information about the macosx-port-dev mailing list