|
@@ -254,11 +254,15 @@ |
|
|
<li><a href="#propertyvalue-as-name-for-property"> |
|
|
<li><a href="#propertyvalue-as-name-for-property"> |
|
|
How can I do something like <code><property name="prop" |
|
|
How can I do something like <code><property name="prop" |
|
|
value="${${anotherprop}}"/></code> (double expanding the property)? |
|
|
value="${${anotherprop}}"/></code> (double expanding the property)? |
|
|
|
|
|
</a></li> |
|
|
|
|
|
<li><a href="#delete-directory-children-only"> |
|
|
|
|
|
How can I delete everything beneath a particular directory, |
|
|
|
|
|
preserving the directory itself? |
|
|
</a></li> |
|
|
</a></li> |
|
|
</ul> |
|
|
</ul> |
|
|
<h4 class="toc">It doesn't work (as expected)</h4> |
|
|
<h4 class="toc">It doesn't work (as expected)</h4> |
|
|
<ul> |
|
|
<ul> |
|
|
<li><a href="#genral-advice"> |
|
|
|
|
|
|
|
|
<li><a href="#general-advice"> |
|
|
General Advice |
|
|
General Advice |
|
|
</a></li> |
|
|
</a></li> |
|
|
<li><a href="#always-recompiles"> |
|
|
<li><a href="#always-recompiles"> |
|
@@ -1084,9 +1088,24 @@ shell-prompt> m4 foo.m4 > foo |
|
|
<property name="@{name}" value="${@{from}}"/> |
|
|
<property name="@{name}" value="${@{from}}"/> |
|
|
</sequential> |
|
|
</sequential> |
|
|
</macrodef> |
|
|
</macrodef> |
|
|
|
|
|
</pre> |
|
|
|
|
|
<p class="faq"> |
|
|
|
|
|
<a name="delete-directory-children-only" /> |
|
|
|
|
|
How can I delete everything beneath a particular directory, |
|
|
|
|
|
preserving the directory itself? |
|
|
|
|
|
</p> |
|
|
|
|
|
<p>Most users who go down this path have no problem figuring out that |
|
|
|
|
|
<code><delete includeemptydirs="true" /></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> |
|
|
|
|
|
<pre class="code"> |
|
|
|
|
|
<delete includeemptydirs="true"> |
|
|
|
|
|
<fileset dir="dirtokeep" includes="**/*" /> |
|
|
|
|
|
</delete> |
|
|
</pre> |
|
|
</pre> |
|
|
<p class="faq"> |
|
|
<p class="faq"> |
|
|
<a name="genral-advice"></a> |
|
|
|
|
|
|
|
|
<a name="general-advice"></a> |
|
|
General Advice |
|
|
General Advice |
|
|
</p> |
|
|
</p> |
|
|
<p>There are many reasons why Ant doesn't behave as |
|
|
<p>There are many reasons why Ant doesn't behave as |
|
@@ -2029,14 +2048,3 @@ mv /tmp/foo $ANT_HOME/bin/antRun |
|
|
</p> |
|
|
</p> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|