ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milton Leis <milton.l...@gmail.com>
Subject Inverting the selection of a patternset?
Date Mon, 11 Apr 2005 16:27:28 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message