Users List
Subject: RE: Escapign backslash in java.home
why don't you use forward-slashes instead backslashes?
It is the same for Java and it fits on Win & *nix systems; of course, it
won't work the same on any OS, since in Win you have this horrible
drives concept (C: D: etc)
Users List
Subject: RE: Escapign backslash in java.home
why don't you use forward-slashes instead backslashes?
It is the same for Java and it fits on Win & *nix systems; of course, it
won't work the same on any OS, since in Win you have this horrible
drives concept (C: D: etc)
What is wrong with the following?
java.home is ${java.home}
If you wanted to replace \ with \\, you could use a scriptfilter:
self.setToken(self.getToken().replace("\\", ""));
\a\b\c
Peter
Thomas Saxtoft wrote:
On a Windows XP I
dition.html
[2] http://marc.theaimsgroup.com/?l=ant-user&m=109760252905015&w=2
http://marc.theaimsgroup.com/?l=ant-user&m=107631038006160&w=2
-Original Message-
From: Thomas Saxtoft [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 7:41 AM
To: [EMAIL PROTECTED]
On a Windows XP I have to write the java.home property to a file, but
doing that the '\' disappears. I suspect that it needs to be escaped
like '\\', but the value of java.home is the one that contains the
backslash.
How do I write it to the file?
The next thing is, how do I make it general so tha