Ant 递归删除文件夹
发现用Ant1.7删除文件夹的时候,必须先删除里面的文件,再删除文件夹。不能直接删除非空文件夹,记录一下。
<project name="MyProject" default="deleteDirs" basedir="."> <description>simple example build file</description> <property name="src" location="src"/> <target name="deleteDirs"> <delete> <fileset dir="." includes="**/bin/*.*"/> </delete> <delete includeemptydirs="true"> <fileset dir="." includes="**/bin"/> </delete> </target> </project>
相关推荐
BitsPlayer 2020-05-29
roygbip 2020-02-16
BitsPlayer 2020-02-13
lrcoop 2020-02-03
chichichi0 2020-01-06
BitsPlayer 2019-12-19
BitsPlayer 2019-12-14
xueliangEmail 2013-07-22
cailianren 2010-04-15
wugang0 2019-11-09
lustdevil 2011-08-28
evilvoid 2008-04-17
leonranri 2019-11-05
leeccr 2019-10-31
evilvoid 2010-02-02