build - Ant to delete subdirectories and files in subdirectories but not any file from the directory itself -
my requirement delete subdirectories specified directory, not delete files in specified directory.
i have fussed around fileset , dirset , not single collection job. works this:
<delete includeemptydirs="true" verbose="true" > <fileset dir="release/reports" > <exclude name="*.*" /> </fileset> <dirset dir="release/reports" includes="**/*" /> </delete>
isn't there way 1 collection (either fileset or dirset)?
it should work :
<delete includeemptydirs="true"> <fileset dir="c:/yourdir" includes="**/*" excludes="*.*"/> </delete>
Comments
Post a Comment