ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Combining PatternSets with Path elements
Date Fri, 10 Nov 2000 09:03:41 GMT
Ingo Proetel <iproetel@SELECTICA.com> wrote:

Note, your syntax for using references to patternsets is not valid
(you can not use refid and nested patterns in the same element, make
that two separate patternsets).

> <target name="package" >
>   <jar>  
>     <patternset refid="packages" >
>       <!-- this would exclude all .java files in the patternset only
>       -->
> 
>       <exclude name="**/*.java" />
>     </patternset>
>   </jar>
> </target>

This should work (written as)

   <jar>  
     <patternset refid="packages" />
     <patternset excludes="**/*.java" />
   </jar>

or

   <jar>  
     <patternset refid="packages" />
     <patternset>
       <exclude name="**/*.java" />
     </patternset>
   </jar>

Stefan

Mime
View raw message