RE: Writing java.home to file

2004-11-18 Thread Thomas Saxtoft
Well, for me it works that way as well. I had not tried before. But my problem persists, and what I left out in my former e-mail was that I am using the replaceregexp task. So it must be the replaceregexp task that gives me the problem. I do the following: So the thing is that I probabl

Writing java.home to file

2004-11-18 Thread Thomas Saxtoft
, because then it is already too late. Thanks in advance, Thomas Saxtoft - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Escapign backslash in java.home

2004-11-16 Thread Thomas Saxtoft
The thing is that the java.home I get from ant already contains the backslash. My script looks like this: I need to change the backslash contained in the property (java.home) to a frontslash, before writing to the file. When written to the file the backslash has disappeared, and thus it

Escapign backslash in java.home

2004-11-15 Thread Thomas Saxtoft
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