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 Re: filenames and linenumbers in concat / fileset / filterchain target?
Date Tue, 27 May 2008 10:28:54 GMT
Anyone? Is it too complicated or too boring?

Any workarounds?

Seb.

Am Mon, 26 May 2008 11:00:36 +0200
schrieb Sebastian Menge <sebastian.menge@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


Mime
View raw message