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 2014/03/14 21:07:06 UTC

svn commit: r1577687 - /ant/core/trunk/src/tests/antunit/taskdefs/taskdef-antlib-test.xml

Author: bodewig
Date: Fri Mar 14 20:07:05 2014
New Revision: 1577687

URL: http://svn.apache.org/r1577687
Log:
try to help Java5 builds and finally figure out what was wrong with disabled test

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

Modified: ant/core/trunk/src/tests/antunit/taskdefs/taskdef-antlib-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/taskdef-antlib-test.xml?rev=1577687&r1=1577686&r2=1577687&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/taskdef-antlib-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/taskdef-antlib-test.xml Fri Mar 14 20:07:05 2014
@@ -23,7 +23,7 @@
         <property name="tmpdir" location="../../../../build/ant-unit/taskdef" />
         <mkdir dir="${tmpdir}" />
         <echo file="${input}/org/example/antlib.xml">
-            <![CDATA[<antlib xmlns:e="antlib:org.example">
+            <![CDATA[<antlib xmlns:e="ant:current">
                 <macrodef name="echoo" backtrace="false">
                     <attribute name="message" />
                     <sequential>
@@ -41,16 +41,20 @@
         <jar destfile="${test.jar}">
             <fileset dir="${input}" />
         </jar>
+        <sleep seconds="1"/>
     </target>
 
     <target name="testAntlib" depends="setUp">
-        <taskdef classpath="${test.jar}" uri="antlib:org.example" />
+        <taskdef classpath="${test.jar}" uri="antlib:org.example"
+                 loaderref="loader1"/>
         <echoooo xmlns="antlib:org.example" message="exemple" />
         <au:assertLogContains text="exempleexempleexempleexemple" />
     </target>
 
-    <target name="broken_testURI" depends="setUp">
-        <taskdef classpath="${test.jar}" uri="urn:my:exemple" resource="org/example/antlib.xml" />
+    <target name="testURI" depends="setUp">
+        <taskdef classpath="${test.jar}" uri="urn:my:exemple"
+                 loaderref="loader2"
+                 resource="org/example/antlib.xml" />
         <echoooo xmlns="urn:my:exemple" message="exemple" />
         <au:assertLogContains text="exempleexempleexempleexemple" />
     </target>