Hello,

           I had a simialr problem to this, if you cannot switch \ to / (I
had a problem that I needed to replace a path whihc became a commadn line).
I ended up having to put four \ to replace one \.  This ended up being two
for java and two for a regex although you are not using regexs - give that a
go.

Cheers,

Neil

On 1/10/06, shreedhar natarajan <[EMAIL PROTECTED]> wrote:
>
> hi all,
>
> One of my property file has key/values such as
>
> path=something\usb
>
> When I read this property like
>
> <property file="${build_dir}/myvalues.properties" />
>
> ant throws an exception, C:\mydir\build.xml:35:
> java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
>
>
> I understand that it interprets \u in usb as unicode char. how to over
> come this?
>
> I tried to use a filter to change "\" to "\\"
>
> <filter token="\" value="\\"/>
> <copy file="${build_dir}/myvalues.properties" filtering="true"
> tofile="${build_dir}/myvalues1.properties" overwrite="true">
> </copy>
>
> It does not seem to work. What could be the problem ?
>
> Bst rgds
> Shreedhar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to