ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: ested filesets - how to do it?
Date Wed, 06 Aug 2008 09:01:41 GMT
a) use a <path id> with several <fileset>s
b) dont use common|decoder in the pattern. But in that way you also
   include decoder/AutoProfile.c ... (if present) !
 

Jan


> -----Urspr√ľngliche Nachricht-----
> Von: Robert Jones [mailto:robertgbjones@gmail.com] 
> Gesendet: Mittwoch, 6. August 2008 10:43
> An: user@ant.apache.org
> Betreff: ested filesets - how to do it?
> 
> 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}/
> audio/wmaudio/v10">
>    <patternset>
>    <include name="common/AutoProfile.c"/>
>    <include name="common/basepluspro.c"/>
>    <include name="common/chexpro.c"/>
>    </patternset>
>    <patternset>
>    <include name="decoder/baseplusdecpro.c"/>
>    <include name="decoder/chexdecpro.c"/>
>    <include name="decoder/entropydec.c"/>
>    </patternset>
>  </fileset>
> 
> and I'd like to rewrite so as to remove the redundant repetition of
> common/decoder,
> something like...
> 
>  <fileset id="wma.sourcefiles"
> dir="${wma.sourcefiles.root}/audio/wmaudio/v10">
>    <patternset dir="${dir}/common">
>    <include name="AutoProfile.c"/>
>    <include name="basepluspro.c"/>
>    <include name="chexpro.c"/>
>    </patternset>
>    <patternset dir="${dir}/decoder">
>    <include name="baseplusdecpro.c"/>
>    <include name="chexdecpro.c"/>
>    <include name="entropydec.c"/>
>    </patternset>
>  </fileset>
> 
> 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'
> maybe
> my syntax was wrong.
> 
> I thought of splitting it to several filesets, but I need to 
> tag the whole
> with
> an id - maybe I should be using some other container and tag that?
> 
> Any thoughts?
> 
> Thanks in Advance, Rob.
> 
> 
> 
> -- 
> ACCU - Professionalism in programming - http://www.accu.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message