ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Remove nulll chars from file
Date Thu, 01 Jul 2010 14:44:59 GMT
On 2010-07-01, Carlos Garc├ęs wrote:

> There is other way to represent the null char on ant script?

Unfortunately there isn't - and you can't even legally add a NUL
character to any XML file either (for example &#0; would be invalid).

A custom filter (maybe a scriptfilter using JavaScript) would work, but
I'm afraid you can't configure any of the configured filters to skip
NULs.

It may be a nice enhancement if Ant's "backslash interpretation"
understood Java's unicode escapes so you could write \u0000.

Stefan

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


Mime
View raw message