although not obvious from the manual page for filterchain
most of the tokenfilter filters may also be used directly
under <filterchain> so the following will also work:
<project>
<copy file="a_file_with_crlf"
tofile="a_file_without_crlf">
<filterchain>
<ignoreblank/>
</filterchain>
</copy>
</project>
Peter
Ivan Ivanov wrote:
Hello,
I also encountered this problem. Here is a sample that
does the job:
<project>
<copy file="a_file_with_crlf"
tofile="a_file_without_crlf">
<filterchain>
<tokenfilter>
<ignoreblank/>
</tokenfilter>
</filterchain>
</copy>
</project>
a_file_with_crlf:
this is a line
this is a sencond line
more crlfs
another line
yet another on
two more and file ends
After running the above ant snippet,
a_file_without_crlf contains:
this is a line
this is a sencond line
more crlfs
another line
yet another on
two more and file ends
Regards Ivan
--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
If you use OS pipes, you will appreciate
filterchains.
-----Original Message-----
From: Nat Gross
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 4:41 PM
To: Ant Users List
Subject: Re: Cleaning a text file with tons of extra
CRLF's
filterchains? I will need to catch up on that topic.
Thanks for the tip.
-nat
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]