Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal JavaApplicationStub - Jar Bundler doesn't give it to me.



What about file permissions?  Would it be an issue if someone without write perms to the appropriate app-wrapper directory was the first to run the application?  Also, what about folks copying the app from one installed location to another machine - they might get the wrong flavor binary that way...

Would it be possible to ship with a shell script that would exec the JavaAppStub from its home each time? 

Is there a *recommended* way to ship your app-bundled application?

-pete

On 1/22/06, Greg Guerin <email@hidden> wrote:
Bill Janssen wrote:

>Actually, a symlink might even work better.  If the app is then copied
>to another machine, with a different flavor of the OS on it, the
>symlink should still work OK.

Correct.  An absolute symlink will refer to whatever is at the absolute
indirect path.


>On the other hand, doing the copy would
>allow me to update the timestamps as Mike Hall suggested.

You can get an "update" by calling 'touch' on the app-bundle dir (the
.app).  What Mike Hall was referring to, I think, was that LaunchServices
will not update its cache UNLESS and until the main app-bundle dir is
modified.  That is, only changing things internally, such as the content of
Info.plist, won't change LS's caching.

That said, if you don't change Info.pllist, it shouldn't matter.  So if
Info.plist still says "Foo" is the executable, and you rename the
shell-script "Foo" to "Bar", and put a symlink to JavaApplicationStub named
"Foo" in its place, then LS wouldn't know the difference.  I think.  But
just to be asfe, what the heck, add a 'touch' to the shell-script.


>One more thing to do would be to compile everything with Java 1.4.2,
>instead of a newer version, so that the jar files will still work on
>Panther systems.

Yes.  I always do this, or whatever the minimum JRE is, should it be less
than 1.4.

  -- GG


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



--
-pete
peter m. murray
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.