Bug 60968 - linecontainsregexp doesn't support the "regexp" attribute
Summary: linecontainsregexp doesn't support the "regexp" attribute
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Documentation (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal (vote)
Target Milestone: 1.9.10
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-11 07:00 UTC by Stefan Eike
Modified: 2017-04-11 14:35 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Eike 2017-04-11 07:00:15 UTC
The "linecontainsregexp"  filter reader does not support a "regexp" attribute. The regular expression should be supplied as a nested "regexp" element. This table should be fixed: https://ant.apache.org/manual/Types/filterchain.html#linecontainsregexp
Comment 1 Stefan Bodewig 2017-04-11 14:21:51 UTC
Thanks, you are correct.

Actually this is only half of the story, when you use the syntax of

<filterreader classname="org.apache.tools.ant.filters.LineContainsRegExp">
  <param type="regexp" value="foo"/>
</filterreader>

then it works, it is just not exposed as attribute on the <linecontainsregex> element.

Rather than documenting the fact, I'll add the attribute to the upcoming releases and add an appropriate since marker to the manual.
Comment 2 Stefan Bodewig 2017-04-11 14:35:09 UTC
fixed with git commit 5347475 for 1.9.10 and 1.10.2