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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -