ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GE Energy, Non GE, GENE)" <>
Subject RE: Escapign backslash in java.home
Date Mon, 15 Nov 2004 14:24:07 GMT
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)


(for Win)

(for *nix)

bottom line, you have to write properties for both OSes and pick them on the
fly by using something like <condition> [1] task. This kind of operation has
been discused in this list several times [2]

Hope this helps


-----Original Message-----
From: Thomas Saxtoft []
Sent: Monday, November 15, 2004 7:41 AM
Subject: Escapign backslash in java.home

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
How do I write it to the file?

The next thing is, how do I make it general so that it also works on a
Linux machine?

Thanks in advance,


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message