ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36239] - <replaceregex> in <tokenfilter> does not honour flags="s"
Date Wed, 31 Aug 2005 15:49:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36239>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36239


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From peterreilly@apache.org  2005-08-31 17:49 -------
The way tokenfilter works is that it tokenizes the input stream by
default into lines before passing them to the nested token filters.

One can change the tokenizer by adding a nested tokenizer to tokenfilter.
In your case you need to use <filetokenizer/>.

So the copy should look like:

    <copy overwrite="true" file="src.txt" tofile="dest.txt">
      <filterchain>
        <tokenfilter>
          <filetokenizer/>
          <replaceregex pattern="START.*" replace="SNIP" flags="gs"/>
        </tokenfilter>
      </filterchain>
    </copy>

This is probally a doc issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message