ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: patternset do not allow inner patternset
Date Tue, 26 Mar 2002 00:42:20 GMT
One workaround would be to use the excludesfile capabilities of
patternsets - and define your patterns in files.

But I agree that a patternset should allow nested patternsets.

    Erik


----- Original Message -----
From: "Zart Colwing" <zartc@wanadoo.fr>
To: <ant-user@jakarta.apache.org>
Sent: Monday, March 25, 2002 6:54 PM
Subject: patternset do not allow inner patternset


> This is relay a lame. I have the following patternset that help me
> exclude some gremlin files to appear in any compile task, copy task, tar
> task and so on:
>
> <patternset id="zap.gremlin_files">
> <exclude name="**/Icon\r"/>
> <exclude name="**/.DS_Store"/>
> <exclude name="**/package cache/**"/>
> <!-- add any other gremlin files here as they are discovered -->
> </patternset>
>
> My intention is to use this patternset as a common denominator used by
> all other patterset like this:
>
> <patternset id="set1">
> <include name="**/*.java"/>
> <exclude name="**/Test_*.java"/>
> <patternset refid="zap.gremlin_files"> <!-- here -->
> </patternset>
> . . .
> <patternset id="set9999">
> <include name="**/Test_*.java"/>
> <patternset refid="zap.gremlin_files"> <!-- and here -->
> </patternset>
>
> unfortunately, patternset do not support nested patternset !
>
> What am I suppose to do know, duplicate the <exclude> list in all my
> other patterset (there is 9999 of them) and what if I discover a new
> gremlin file ?  am i supposed to update all the 9999 patternset ?
>
> :Note: I do not want to exchange my patterset to fileset because fileset
> are tied to a given directory while patterset are generic.
>
> Any ideas ?
>
> ZC.
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message