You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2012/02/25 17:52:53 UTC

svn commit: r1293648 - /ant/core/trunk/src/tests/antunit/taskdefs/macrodef-test.xml

Author: bodewig
Date: Sat Feb 25 16:52:52 2012
New Revision: 1293648

URL: http://svn.apache.org/viewvc?rev=1293648&view=rev
Log:
add a test verifying properties get expanded twice in macrodef attributes by default.  PR 52621

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/macrodef-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/macrodef-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/macrodef-test.xml?rev=1293648&r1=1293647&r2=1293648&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/macrodef-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/macrodef-test.xml Sat Feb 25 16:52:52 2012
@@ -33,7 +33,7 @@
     <au:assertLogContains text="THIS IS NOT DEFAULT LOG"/>
   </target>
 
-  <target name="testDoubleExpandedProperties"
+  <target name="testDisableDoubleExpandedProperties"
           description="https://issues.apache.org/bugzilla/show_bug.cgi?id=42046">
     <macrodef name="indirect">
       <attribute name="value" doubleexpanding="false"/>
@@ -45,4 +45,16 @@
     <au:assertLogContains text="{basedir}"/>
   </target>
 
+  <target name="testEnableDoubleExpandedProperties"
+          description="https://issues.apache.org/bugzilla/show_bug.cgi?id=52621">
+    <macrodef name="indirect">
+      <attribute name="value"/>
+      <sequential>
+        <echo message="@{value}"/>
+      </sequential>
+    </macrodef>
+    <indirect value="$${basedir}"/>
+    <au:assertLogDoesntContain text="{basedir}"/>
+  </target>
+
 </project>