ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Garcés <carlos-gar...@usa.net>
Subject Remove nulll chars from file
Date Thu, 01 Jul 2010 14:06:53 GMT
Hi!

I'm trying to remove null chars of one fine generated with exec task, 
this sin the simplified version:

<project name=MyProject" default="test" basedir=".">
<target name=est" >
<exec executable=Mycommand" failonerror="true" >
<redirector
                 error=rror.txt"
                 output=k.txt">
<outputfilterchain>
<tokenfilter>
<deletecharacters chars=0"/>
</tokenfilter>
</outputfilterchain>
</redirector>
</exec>
</target>
</project>



It works with \n, \r, \f, \t and \\ 
[http://ant.apache.org/manual/Types/filterchain.html#backslash] but not 
with \0

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

Un saludo
Carlos Garcés


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


Mime
View raw message