|
|
@@ -917,6 +917,17 @@ shell-prompt> m4 foo.m4 > foo |
|
|
|
</pre> |
|
|
|
<p>With AntContrib (external task library) you can do <code> |
|
|
|
<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"> |
|
|
|
<a name="always-recompiles"></a> |
|
|
|
Why does Ant always recompile all my Java files? |
|
|
|