ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r495705 - /ant/core/trunk/xdocs/faq.xml
Date Fri, 12 Jan 2007 19:40:22 GMT
Author: mbenson
Date: Fri Jan 12 11:40:21 2007
New Revision: 495705

URL: http://svn.apache.org/viewvc?view=rev&rev=495705
Log:
commit doc xml after the fact 'cause I'm too dumb to generate docs.  :(

Modified:
    ant/core/trunk/xdocs/faq.xml

Modified: ant/core/trunk/xdocs/faq.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/xdocs/faq.xml?view=diff&rev=495705&r1=495704&r2=495705
==============================================================================
--- ant/core/trunk/xdocs/faq.xml (original)
+++ ant/core/trunk/xdocs/faq.xml Fri Jan 12 11:40:21 2007
@@ -681,10 +681,27 @@
 ]]></source>
       </answer>
     </faq>
+
+    <faq id="delete-directory-children-only">
+      <question>How can I delete everything beneath a particular directory,
+    preserving the directory itself?</question>
+      <answer>
+<p>Most users who go down this path have no problem figuring out that
+  <code>&lt;delete includeemptydirs="true" /&gt;</code> 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:
+</p>
+        <source><![CDATA[
+<delete includeemptydirs="true">
+  <fileset dir="dirtokeep" includes="**/*" />
+</delete>
+]]></source>
+      </answer>
+    </faq>
   </faqsection>
 
   <faqsection title="It doesn&apos;t work (as expected)">
-    <faq id="genral-advice">
+    <faq id="general-advice">
       <question>General Advice</question>
       <answer>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message