ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1293648 - /ant/core/trunk/src/tests/antunit/taskdefs/macrodef-test.xml
Date Sat, 25 Feb 2012 16:52:53 GMT
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>



Mime
View raw message