can't hurt to put it in ant-contrib.  If the ant-dev
folks like it, and put it in the core, we'll deprecate
it, and eventually remove it.  But please do post it to
ant-dev.


----------------
Matthew Inger [inger@synygy.com]
Software Developer
Synygy, Inc
610-664-433 x 7770
"Self Respect - The secure feeling that no one, as yet,
 is suspicious" - HL Mencken


-----Original Message-----
From: peter reilly [mailto:peter.reilly@corvil.com]
Sent: Thursday, March 20, 2003 7:41 AM
To: ant-contrib-developers@lists.sourceforge.net
Subject: Re: [Ant-contrib-developers] modified concat


Sorry, I pressed the send button before
finishing the message.

I meant to ask if people would be interested with this
on ant-contrib, should I try to merge the changes into
concat (ikky) or just sent the task to ant-user?

Including a manual page.
Peter

On Thursday 20 March 2003 12:29, peter reilly wrote:
> I have a modified (rewritten) concat task - concat2 which:
>
> 1) takes a path for source files
> 2) does optional dependency checking (sourcefiles->destfile)
> 3) has optional filterchains to filter the source files
> 4) has optional header and a footer element
>
> I use this quite a lot (with a custom regex match replace filter) to
> generate c header files.
>
> a (useless) example follows:
>
>         <concat2 destfile="${build.dir}/packages.txt">
>           <header>Packages used:</header>
>           <sourcefiles>
>              <fileset dir="${src.dir}" includes="**/*.java"/>
>           </sourcefiles>
>           <filterchain>
>              <linecontainsregexp>
>                 <regexp pattern="^\s*package"/>
>              </linecontainsregexp>
>           </filterchain>
>         </concat2>