diff --git a/docs/faq.html b/docs/faq.html index ce4ab7f56..8971fa607 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -917,6 +917,17 @@ shell-prompt> m4 foo.m4 > foo
With AntContrib (external task library) you can do
<propertycopy name="prop" from="${anotherprop}"/>.
With Ant 1.6 you can simulate the AntContribs <propertycopy> + and avoid the need of an external library:
+
+<macrodef name="propertycopy">
+ <attribute name="name"/>
+ <attribute name="from"/>
+ <sequential>
+ <property name="@{name}" value="${@{from}}"/>
+ </sequential>
+</macrodef>
+
Why does Ant always recompile all my Java files? diff --git a/xdocs/faq.xml b/xdocs/faq.xml index 8f9c0885a..10d94f842 100644 --- a/xdocs/faq.xml +++ b/xdocs/faq.xml @@ -581,6 +581,17 @@ shell-prompt> m4 foo.m4 > foo ]]>
With AntContrib (external task library) you can do
<propertycopy name="prop" from="${anotherprop}"/>.
With Ant 1.6 you can simulate the AntContribs <propertycopy> + and avoid the need of an external library:
+