Viraj Purang <[EMAIL PROTECTED]> wrote:
> But what finally ends up happening is that all the directories
> remain intact and all files are deleted because the CVS directory
> with allits files does not get deleted.
Are you running Ant 1.3? There is a bug in its delete task -
includeemptydirs doesn't really work.
> <delete verbose="true" includeEmptyDirs="true" defaultexcludes="no">
> <fileset dir="." excludes="build.xml"/>
> </delete>
This way, the defaultexcludes attribute applies to the implicit
fileset of delete, not the explicit one. Make that
<delete verbose="true" includeEmptyDirs="true">
<fileset dir="." excludes="build.xml" defaultexcludes="no"/>
</delete>
and it should pick up the files in your CVS directories as well.
Stefan