Depending on the file syntax, one could also do
<fail>
<condition>
<resourcecount when="equal" count="0">
<restrict>
<concat>
<filterchain><striplinebreaks/></filterchain>
<fileset file="${file}"/>
</concat>
<containsregexp expression="${regex}"/>
</restrict>
</resourcecount>
</condition>
</fail>
or replace the linebreaks by (e.g.) whitespace using a TokenFilter.
Assuming that everything is streamed (don't know whether that's the
case), this could be very efficient.
-- Niklas Matthies
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]