ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob H - VSCM" <Anderson....@vectorscm.com>
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 [mailto:dclements@merc-int.com]
Sent: Wednesday, March 12, 2003 10:12 AM
To: 'ant-user@jakarta.apache.org'
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
code:

 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}"
delimiter="${vssProject}"/>

This prints:

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

No slashes?


Any ideas?


Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message