Browse Source

commit doc xml after the fact 'cause I'm too dumb to generate docs. :(

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@495705 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
6bbd513905
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      xdocs/faq.xml

+ 18
- 1
xdocs/faq.xml View File

@@ -678,13 +678,30 @@ shell-prompt> m4 foo.m4 > foo
<property name="@{name}" value="${@{from}}"/>
</sequential>
</macrodef>
]]></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>



Loading…
Cancel
Save