ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bill/wilandra" <b...@wilandra.com>
Subject RE: Reading properties
Date Tue, 10 Jan 2006 00:53:50 GMT
Try changing the \ to / in the file.

HTH  Bill 

-----Original Message-----
From: shreedhar natarajan [mailto:shreedharn@ami.com] 
Sent: Monday, January 09, 2006 4:46 PM
To: Ant Users List
Subject: Reading properties

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: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org





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


Mime
View raw message