diff --git a/docs/faq.html b/docs/faq.html index ffb706142..03c33e71d 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -254,11 +254,15 @@
<property name="prop"
value="${${anotherprop}}"/>
(double expanding the property)?
+ + + How can I delete everything beneath a particular directory, + preserving the directory itself? +
+Most users who go down this path have no problem figuring out that
+ <delete includeemptydirs="true" />
will help them. The
+ seemingly tricky part is preserving the base directory itself,
+ which Ant includes in the directory scan. Fortunately the answer is simple:
+
+<delete includeemptydirs="true"> + <fileset dir="dirtokeep" includes="**/*" /> +</delete>
There are many reasons why Ant doesn't behave as @@ -2029,14 +2048,3 @@ mv /tmp/foo $ANT_HOME/bin/antRun