From: peter r. <pet...@co...> - 2003-03-20 12:39:51
|
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=3D"${build.dir}/packages.txt"> > <header>Packages used:</header> > <sourcefiles> > <fileset dir=3D"${src.dir}" includes=3D"**/*.java"/> > </sourcefiles> > <filterchain> > <linecontainsregexp> > <regexp pattern=3D"^\s*package"/> > </linecontainsregexp> > </filterchain> > </concat2> |