Hi all,

It was brought to my attention that the properties file path is
constructed using the System property for "file.separator", and this
isn't always the correct thing to do.  It seems correct, but if you
look at the implementation of JarFile and ZipFile, you will see that
paths inside those (JAR files and ZIP files) do not use the system's
file.separator, they use the forward slash.  It kinda makes sense,
since JAR and ZIP files need to be portable across systems.  However,
it would have been nice if the implementation did conversion of the
platform's file.separator (in passed-in key Strings) to the JAR/ZIP
implementation's hardcoded value ('/').  Alas, it doesn't seem so.

Anyway, to work-around this, the easiest solution I can think of is to
define 2 properties file names; the first using the system's
file.separator, and the second using the hardcoded '/'.  If the first
is found, it's used, otherwise check the second, etc.

Anyone have comments or suggestions?

Thanks.

-- 
Dan Streetman
[EMAIL PROTECTED]
--------------------------------------------------
186,282 miles per second:
It isn't just a good idea, it's the law!



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to