Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Hex character escaping.

Hex character escaping.

2003-02-08       - By Todor Boev
Reply:     1     2     3     4     5     6     7     8     9     10  

Can I use the "&#x<hex number>" format to escape characters when I specify
values in Ant?
For example I need to have this executed:

<pathconvert targetos="windows" pathsep="&#xA" property ="build.list"
refid="build.fileset"/>

In other words instead of the default OS path separator I need a line-feed
(#xA). When run this produces an "Illegal hexadecimal character reference"
error. I also tried to escpae the letter "A" in an <echo
message="...&#x41..."/> task but it yelded the same result.

Todor Boev



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.