Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: MRJAppBuilder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MRJAppBuilder



Jeff Barrett <email@hidden> wrote:

> I was looking for quick help with MRJAppBuilder. If I want to read
>a property file from the root level of my application, how do I
>accomplish this task?

I'm not sure what you mean by "root level". If you mean "directly inside
the .app bundle directory", then you use this form:
$APP_PACKAGE/Your.properties

If you mean "a sibling adjacent to the .app bundle" then this form:
$APP_PACKAGE/../Your.properties

or this form:
./Your.properties

since the current dir ("user.dir") will be set to the app-bundle's parent
unless you direct otherwise (but not for Cocoa-Java apps, which get "/" as
current dir, except when launched from PB).

The $APP_PACKAGE notation will only work in properties, not in arguments.
This is because MRJAppBuilder does not expand it in arguments from an
"MRJApp.properties" file, and because the "Arguments" key doesn't work from
an Info.plist file (fixed in 1.3.1U1, as I recall). Same holds true for
"Pure Java" PB apps, since they use the same application-stub as
MRJAppBuilder.

All this is covered in the 10.1 Java release notes:
<http://developer.apple.com/techpubs/java/ReleaseNotes/java10.1.html>

Except the bit about the Arguments key not working.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.