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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to