I am trying to build 2 archives (a .tgz and a .zip) from a CVS checkout, excluding all the CVS folders. So I define a file set like so:
<fileset dir="." id="archive.files">
<include name="**/**"/>
<exclude name="CVS/**"/>
<exclude name="CVSROOT/**"/>
<exclude name="build/**"/>
<exclude name="build.xml"/>
</fileset>
I then have two targets like so:
<target name="build-tgz" description="Generates .tgz file containing modules" depends="init">
<tar destfile="${tarfile}" compression="gzip">
<fileset refid="archive.files"/>
</tar>
</target>
<target name="build-zip" description="Generates .zip file containing modules" depends="init">
<zip destfile="${zipfile}">
<fileset refid="archive.files"/>
</zip>
</target>
Which you would think would end up with the same files in both archives. This is not the case and I can't quite lay my finger on what is causing the issue. The archives are very nearly identical except (this is just one example) in the .tgz I have this folder:
timeline/resources/ext/geochrono/images/CVS
Which is incorrect (my fileset specifically excludes all CVS folders). This folder does not end up in the zip file. There is a hidden .svn folder at the same level as the CVS folder under images, I don't know if this is causing the problem (i.e. if you have a hidden folder under an excluded folder the excluded folder is still included).