diff --git a/docs/manual/CoreTasks/delete.html b/docs/manual/CoreTasks/delete.html index 579c82bd2..b8ab21b29 100644 --- a/docs/manual/CoreTasks/delete.html +++ b/docs/manual/CoreTasks/delete.html @@ -22,11 +22,11 @@ collection types that do include directories, but that no attempt will be made to delete non-empty directories in any case.
If you use this task to delete temporary files created by editors
-and it doesn't seem to work, read up on the
+and it doesn't seem to work, read up on the
default exclusion set
in Directory-based Tasks, and see the
defaultexcludes
attribute below.
-
+
No, default "false" |
<delete file="/lib/ant.jar"/>
deletes the file /lib/ant.jar
.
<delete dir="lib"/>-
deletes the lib
directory, including all files
+
deletes the lib
directory, including all files
and subdirectories of lib
.
<delete> <fileset dir="." includes="**/*.bak"/> </delete>-
deletes all files with the extension .bak
from the current directory
+
deletes all files with the extension .bak
from the current directory
and any subdirectories.
<delete includeEmptyDirs="true"> <fileset dir="build"/> </delete>
deletes all files and subdirectories of build
, including
build
itself.
<delete includeemptydirs="true"> <fileset dir="build" includes="**/*"/> </delete>
deletes all files and subdirectories of build
, without
build
itself.
Copyright © 2000-2002, 2004-2005 The Apache Software Foundation. + +
<delete defaultexcludes="false"> + <fileset dir="src" includes="**/.svn"/> + </delete> ++
deletes the subversion metadata directories under src
. Because .svn
+is on of the default excludes you have to use the
+defaultexcludes
flag, otherwise Ant wont delete these directories and the files in it.
Copyright © 2000-2002, 2004-2006 The Apache Software Foundation. All rights Reserved.