ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Leaton <nic...@gmail.com>
Subject fileset problem
Date Mon, 12 Jul 2010 09:36:49 GMT
I'm trying to create a zip file to archive source.

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.

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

Any ideas?

-- 
Nick

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


Mime
View raw message