ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
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/**"/>
</fileset>

Just add more <exclude> elements as required.

Conor


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message