ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: fileset problem
Date Mon, 12 Jul 2010 15:09:45 GMT
On 2010-07-12, Nick Leaton wrote:

> However, I want to exclude the .hg directory (mercurial) apart from
> the .hg/hgrc file which contains the configuration for the repository.

> I can't get the fileset working properly. This is my attempt.

You don't say what your attempt results in 8-)

> 	<target name="archive">
> 		<tstamp/>
> 		<antcall target="clean"/>
> 		<zip destfile="c:/archive/${}-${DSTAMP}.zip">
> 			<fileset dir=".">
> 				<exclude name=".hg"/>

This is a non-recursive match on the directory name.  It will still
allow all files inside that directory as well as all subdirectories to
get included.  To make this recursive you'd use .hg/** or just .hg/


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

View raw message