You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sebastian Menge <se...@uni-dortmund.de> on 2008/05/26 11:00:36 UTC
filenames and linenumbers in concat / fileset / filterchain target?
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
Re: filenames and linenumbers in concat / fileset / filterchain
target?
Posted by Sebastian Menge <se...@uni-dortmund.de>.
Anyone? Is it too complicated or too boring?
Any workarounds?
Seb.
Am Mon, 26 May 2008 11:00:36 +0200
schrieb Sebastian Menge <se...@uni-dortmund.de>:
> 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