ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Jones" <>
Subject ested filesets - how to do it?
Date Wed, 06 Aug 2008 08:43:27 GMT
I've inherited this Ant build file, and am trying to clean it up a bit!

I have this bit of code... (somewhat abridged!)

 <fileset id="wma.sourcefiles" dir="${wma.sourcefiles.root}/
   <include name="common/AutoProfile.c"/>
   <include name="common/basepluspro.c"/>
   <include name="common/chexpro.c"/>
   <include name="decoder/baseplusdecpro.c"/>
   <include name="decoder/chexdecpro.c"/>
   <include name="decoder/entropydec.c"/>

and I'd like to rewrite so as to remove the redundant repetition of
something like...

 <fileset id="wma.sourcefiles"
   <patternset dir="${dir}/common">
   <include name="AutoProfile.c"/>
   <include name="basepluspro.c"/>
   <include name="chexpro.c"/>
   <patternset dir="${dir}/decoder">
   <include name="baseplusdecpro.c"/>
   <include name="chexdecpro.c"/>
   <include name="entropydec.c"/>

only of course you can't do that, 'cos <patternset> doesn't understand
about directories, only aboout patterns.

I thought maybe I shold nest filesets, but I couldn't do that either, tho'
my syntax was wrong.

I thought of splitting it to several filesets, but I need to tag the whole
an id - maybe I should be using some other container and tag that?

Any thoughts?

Thanks in Advance, Rob.

ACCU - Professionalism in programming -

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message