The only possibility that springs to mind for current
versions of Ant is to define your patterns in lines of
a textfile, e.g. "foo", and then set up two
patternsets:

<patternset id="my.special.files" includesfile="foo"
/>
<patternset id="un.special.files" excludesfile="foo"
/>

HTH,
Matt

--- Milton Leis <[EMAIL PROTECTED]> wrote:
> Anyone help with the following puzzle.  I have a
> carefully crafted 
> patternset, like this:
> 
>    <patternset id="my.special.files">
>      <include name="somedir/somesubdir/My" />
>      <include name="somedir/somesubdir/**/Special"
> />
>      <include name="anotherdir/Files" />
>    </patternset>
> 
> that I can use to ZIP the files like this:
> 
>    <zip destfile="onlySpecials.zip">
>      <fileset dir="root-of-files">
>        <patternset refid="my.special.files"/>
>      </fileset>
>    </zip>
> 
> 
> How can I select all the files that are *not* in the
> same patternset?
> 
>    <zip destfile="commonFiles.zip">
>      <fileset dir="root-of-files>
>        _<<all files except those in
> refid="my.special.files">>  ???
>      </fileset>
>    </zip>
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to