You really don't have to worry about it. Ant understands both and Java understands mixed use of "/" and "\" when using file:///.
BTW, you can also do relative paths like this and it will work for both UNIX and Windows...
file:../WEB-INF/log4j.xml
Jake
At 11:14 AM 3/28/2003 -0500, you wrote:
Shapira, Yoav wrote:Howdy, Personally, I've encountered nothing but grief when attempting to work with windows-style file paths. (Or more general resource paths, e.g. for JNDI). I don't know if this is a shortcoming of java the language, the File/URI/URL class implementations, the windows file system, or what else, but I don't care. Save yourself time and hassle and work exclusively with unix style paths.
Yoav,
Thanks for your thoughts. I am kind of new to using File I/O on Windows with Java because formerly my only deployment was to a Linux box. I am running Cygwin on Windows, but I believe that only provides me with the convenience of Unix-style file paths in a shell. Do you know of a way that I can force Ant to use Unix-style file paths even though it is technically a Windows machine? Perhaps I should ask on ant-user.
At least in my Java code I can use Unix/Java-style file paths.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
