ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shatzer, Larry" <Larry.Shat...@MIROtechnologies.com>
Subject RE: replaceregexp issue: replace forward slash with backward slas h
Date Sat, 16 Jul 2005 14:02:15 GMT
Why not use <pathconvert>?
http://ant.apache.org/manual/CoreTasks/pathconvert.html

-- Larry

-----Original Message-----
From: Neeraj Kumar [mailto:neeraj.jsr@gmail.com] 
Sent: Saturday, July 16, 2005 5:57 AM
To: Ant Users List
Subject: replaceregexp issue: replace forward slash with backward slash

input:  c:/foo/bar

desired output: c:\foo\bar

code:
<replaceregexp file="test.properties" match="/"
           replace="\\" flags="g"    /> 


I'm getting an error. How do I achieve the desired output?

Thanks.
- Neeraj


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


Mime
View raw message