ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob H - VSCM" <>
Subject RE: What happens to my slashes
Date Wed, 12 Mar 2003 18:17:54 GMT
I think you need to backslash escape the backslash. Try a double backslash

vssProject="testing tmp\\current"

-Rob A

-----Original Message-----
From: David Clements []
Sent: Wednesday, March 12, 2003 10:12 AM
To: ''
Subject: What happens to my slashes

I am building a simple substring task that breaks a string into two halves.
Somehow though if a parameter
that I pass in has slashes in them they disappear.  I am sure that I am
doing something wrong.  Here is the

 public void setDelimiter(String delimiter){
        System.out.println(" #####delimiter:" + delimiter );

        this.delimiter = delimiter;

The delimiter is set in a properties file:

vssProject="testing tmp\current"

The call in ant is:

<substring right="path" src="${baselineDirectory}"

This prints:

[substring] ######delimiter:"testing tmpcurrent"

No slashes?

Any ideas?


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

View raw message