From 6f099c22773354c47105d4aeff32cc97d49fe575 Mon Sep 17 00:00:00 2001 From: Jan Materne Date: Wed, 14 Apr 2004 06:40:08 +0000 Subject: [PATCH] Add macrodef-solution to 'propertycopy'. Thanks Stefan git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276305 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 11 +++++++++++ xdocs/faq.xml | 13 ++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) 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:

+ + + + + + + +]]> @@ -1426,4 +1437,4 @@ mv /tmp/foo $ANT_HOME/bin/antRun - + \ No newline at end of file