Bug 57278 - The containsregexp selector for fileSet cannot parse multiple lines of a file, even if the multiline=true or singleline=true properties are used.
Summary: The containsregexp selector for fileSet cannot parse multiple lines of a file...
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.9.4
Hardware: PC Mac OS X 10.4
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-28 13:07 UTC by Robin
Modified: 2014-11-28 13:07 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin 2014-11-28 13:07:11 UTC
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.