Bug 60968

Summary: linecontainsregexp doesn't support the "regexp" attribute
Product: Ant Reporter: Stefan Eike <eike>
Component: DocumentationAssignee: Ant Notifications List <notifications>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: 1.9.10   
Hardware: PC   
OS: All   

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