This content has been marked as final. Show 4 replies
Strange. It looks like it should work. File.separatorChar invokes FileSystem.getSeparator() at start, and that method reads "file.separator"
Out of curiosity: why do you want to set this to a custom value? That system property normally represents a OS-dependent value that is used when communicating with the OS. What good would it do to set it to a different value (that the OS probably doesn't understand).
yup that what I thought but its not working ... for some reason java files are not picking up the property I specify at as an arg
for some reason some developers have used file.separator to build urls. For dev envs we have put all the assets on a shared file system (linux box) and use apache to point urls to those assets. Now for developers on windows box this does not work as it puts in back slashes in url. This issue as come up as we recently migrated to weblogic 10.3 and jdk 1.6. I was looking for a quick fix to this.
sandy_oberoi1 wrote:Because they didn't know what they were doing. Hopefully you sent an email to the group explaining the difference between files and urls.
for some reason some developers have used file.separator to build urls.
I was looking for a quick fix to this.Myself I would be rather concerned what else the "quick fix" might break.