ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Menge <sebastian.me...@uni-dortmund.de>
Subject filenames and linenumbers in concat / fileset / filterchain target?
Date Mon, 26 May 2008 09:00:36 GMT
Hello.

Below is a target to generate a todo list for the web like the "Task
View" in eclipse.

I would like to have filenames and perhaps even linenumbers in this
list. Is that possible with this approach? How?

TIA, Sebastian.

<target name="todos">
<concat destfile="doc/wiki/todo.txt">

  <path>
    <fileset dir="${dir.src}" includes="**/*.java"/>
  </path>

  <filterchain>
    <linecontains>
      <contains value="TODO"/>
    </linecontains>
    <tokenfilter>
      <replaceregex 
        pattern=".*TODO\s?:?\s*" replace="  * "
        flags="gi"
      /> 
    </tokenfilter>
  </filterchain>

</concat>
</target>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message