I'm using ant 1.6.2... I want to supply parameters to StripLineBreaks (essentially, I want to remove any \r in the text, but not \n.
So, I have tried (in the build.xml file)
<copy file="a" todir="/tmp/work>
<filterchain>
<filterreader classname="org.apache.tools.ant.filters.StripLineBreaks>
<param name="linebreaks" value="\r"/>
</filterreader>
</filterchain>
</copy>
Using the above strips out all letter "r" (for example, "jar" becomes "ja")
I have tried "\r", "\\r", and "\\r"
I cannot upgrade ant to a later version.
Help is appreciated.