ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
Subject Re: <exclude> directive
Date Tue, 08 Jul 2003 03:04:13 GMT
On Tue, 8 Jul 2003 12:49 pm, Yevgeni Kovelman wrote:
> I am fairly new to Ant, I am trying to create WAR files and things work,
> however I have certain directories and files in my source tree that I do
> not want included.
>  <fileset dir="${src}/web/demo" excludes="**/raw/**"/>
> In addition to raw and everything else that comes with it, how do I
> specify additional files/directories to exclude ?

The clearest way is to have a separate <exclude> element for each exclusion

<fileset dir="${src}/web/demo">
  <exclude name="**/raw/**"/>

Just add more <exclude> elements as required.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message