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/${ant.project.name}-${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/
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]