diff --git a/docs/manual/CoreTasks/presetdef.html b/docs/manual/CoreTasks/presetdef.html index 9b9aa8d2e..80c3902cd 100644 --- a/docs/manual/CoreTasks/presetdef.html +++ b/docs/manual/CoreTasks/presetdef.html @@ -146,6 +146,21 @@ called: [showmessage] message is 'Message 2' +
+It is possible to use a trick to evaluate properties when the definition is
+made rather than used. This can be useful if you do not expect some
+properties to be available in child builds run with
+<ant ... inheritall="false">:
+
+<macrodef name="showmessage-presetdef">
+ <attribute name="messageval"/>
+ <presetdef name="showmessage">
+ <echo>message is '@{messageval}'</echo>
+ </presetdef>
+</macrodef>
+<showmessage-presetdef messageval="${message}"/>
+
Copyright © 2003-2005 Apache Software Foundation. All rights Reserved.