ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Adams" <kad...@gfs.com>
Subject Re: includes and excludes
Date Thu, 30 Aug 2001 18:40:43 GMT
Thanks - that works.

>>> donaldp@apache.org 08/30/01 12:44PM >>>
I believe that excludes will always take precedence and thus chuck out your 
includes "matches". What you may be able to do is something like

<jar jarfile="jcp.jar" whenempty="skip" defaultexcludes="false">
    <fileset dir="${base.dir}">
      <exclude name="**/bar/*" />
    </fileset>
    <fileset dir="${base.dir}">
      <include name="**/foo/bar/*.class" />
    </fileset>
</jar>

Not sure - haven't checked it works but try that ;)

Mime
View raw message