git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276305 13f79535-47bb-0310-9956-ffa450edef68master
@@ -917,6 +917,17 @@ shell-prompt> m4 foo.m4 > foo | |||||
</pre> | </pre> | ||||
<p>With AntContrib (external task library) you can do <code> | <p>With AntContrib (external task library) you can do <code> | ||||
<propertycopy name="prop" from="${anotherprop}"/></code>.</p> | <propertycopy name="prop" from="${anotherprop}"/></code>.</p> | ||||
<p>With Ant 1.6 you can simulate the AntContribs <propertycopy> | |||||
and avoid the need of an external library:</p> | |||||
<pre class="code"> | |||||
<macrodef name="propertycopy"> | |||||
<attribute name="name"/> | |||||
<attribute name="from"/> | |||||
<sequential> | |||||
<property name="@{name}" value="${@{from}}"/> | |||||
</sequential> | |||||
</macrodef> | |||||
</pre> | |||||
<p class="faq"> | <p class="faq"> | ||||
<a name="always-recompiles"></a> | <a name="always-recompiles"></a> | ||||
Why does Ant always recompile all my Java files? | Why does Ant always recompile all my Java files? | ||||
@@ -581,6 +581,17 @@ shell-prompt> m4 foo.m4 > foo | |||||
]]></source> | ]]></source> | ||||
<p>With AntContrib (external task library) you can do <code> | <p>With AntContrib (external task library) you can do <code> | ||||
<propertycopy name="prop" from="${anotherprop}"/></code>.</p> | <propertycopy name="prop" from="${anotherprop}"/></code>.</p> | ||||
<p>With Ant 1.6 you can simulate the AntContribs <propertycopy> | |||||
and avoid the need of an external library:</p> | |||||
<source><![CDATA[ | |||||
<macrodef name="propertycopy"> | |||||
<attribute name="name"/> | |||||
<attribute name="from"/> | |||||
<sequential> | |||||
<property name="@{name}" value="${@{from}}"/> | |||||
</sequential> | |||||
</macrodef> | |||||
]]></source> | |||||
</answer> | </answer> | ||||
</faq> | </faq> | ||||
</faqsection> | </faqsection> | ||||
@@ -1426,4 +1437,4 @@ mv /tmp/foo $ANT_HOME/bin/antRun | |||||
</faq> | </faq> | ||||
</faqsection> | </faqsection> | ||||
</document> | |||||
</document> |