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: ditto zip and BOMArchiveHelper, reassemble forks and metadata




Jeff McDonald wrote:
 
> - You might not need to keep the parent folder if you are only trying to archive a file that has a resource fork. If you are trying to archive a .app file then you will > want to use the --keepParent switch.
> - Strings in Java are UTF-16 and the shell is expects a UTF-8 encoding so you might have problems with files that have a path or file name that contains  >characters that are beyond the 7-bit ASCII characters.
 
Thank you, that is very useful.
 
GG wrote:

> It's safer and simpler to construct a String[] to pass to exec(), rather
> than trying to make the parameters quote-safe and then running a shell.
 
I also think it is better to construct a String[].
 
Best regards,
 
Zhang ZeHao  n_n
 _______________________________________________
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.