You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/11/28 14:07:11 UTC

[Bug 57278] New: The containsregexp selector for fileSet cannot parse multiple lines of a file, even if the multiline=true or singleline=true properties are used.

https://issues.apache.org/bugzilla/show_bug.cgi?id=57278

            Bug ID: 57278
           Summary: The containsregexp selector for fileSet cannot parse
                    multiple lines of a file, even if the multiline=true
                    or singleline=true properties are used.
           Product: Ant
           Version: 1.9.4
          Hardware: PC
                OS: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: robin.kunzler@gmail.com

I briefly looked at the source, and it seems that the file is read line by line
using BufferedReader.readLine(). Then the regexp is checked against each of
these lines. Clearly, setting the regexp attributes multiline or singleline
will not allow to match against multiple lines of the file then.

In contrast, the implementation of replaceregexp works as expected. I.e. it is
able to match against multiple lines if configured appropriately.

-- 
You are receiving this mail because:
You are the assignee for the bug.