ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Reading properties
Date Tue, 10 Jan 2006 05:07:09 GMT
On Mon, 9 Jan 2006, shreedhar natarajan <> wrote:

> One of my property file has key/values such as
> path=something\usb


> I understand that it interprets \u in usb as unicode char.


> I tried to use a filter to change "\" to "\\"
> <filter token="\" value="\\"/> <copy
> file="${build_dir}/" filtering="true"
> tofile="${build_dir}/" overwrite="true"> </copy>
> It does not seem to work. What could be the problem ?

That filtering doesn't work as you expect.  Have you checked that has all the backslashes replaced?

filtering works on delimited token, which you don't have in your
properties file.  You want to use a <replace> task instead.


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

View raw message