You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2006/10/06 23:14:31 UTC

svn commit: r453767 - in /ant/core/trunk/src/tests/antunit/types: build-embedded-ref.xml defer-reference-test.xml

Author: peterreilly
Date: Fri Oct  6 14:14:30 2006
New Revision: 453767

URL: http://svn.apache.org/viewvc?view=rev&rev=453767
Log:
defer reference tests

Added:
    ant/core/trunk/src/tests/antunit/types/build-embedded-ref.xml
    ant/core/trunk/src/tests/antunit/types/defer-reference-test.xml

Added: ant/core/trunk/src/tests/antunit/types/build-embedded-ref.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/build-embedded-ref.xml?view=auto&rev=453767
==============================================================================
--- ant/core/trunk/src/tests/antunit/types/build-embedded-ref.xml (added)
+++ ant/core/trunk/src/tests/antunit/types/build-embedded-ref.xml Fri Oct  6 14:14:30 2006
@@ -0,0 +1,3 @@
+<project default="all">
+  <target name="all"/>
+</project>

Added: ant/core/trunk/src/tests/antunit/types/defer-reference-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/defer-reference-test.xml?view=auto&rev=453767
==============================================================================
--- ant/core/trunk/src/tests/antunit/types/defer-reference-test.xml (added)
+++ ant/core/trunk/src/tests/antunit/types/defer-reference-test.xml Fri Oct  6 14:14:30 2006
@@ -0,0 +1,61 @@
+<project default="all" xmlns:au="antlib:org.apache.ant.antunit">
+  <target name="notcalled">
+    <filelist id="ref1" dir="${basedir}" files="xxx" />
+  </target>
+  
+  <target name="test-notcalled">
+    <!-- bug 36955 -->
+    <au:expectfailure>
+      <pathconvert property="_output2" refid="ref1"
+                   pathsep="${line.separator}" />
+    </au:expectfailure>
+  </target>
+
+  <target name="test-macrodef-embedded-ref">
+    <!-- bug 34458 -->
+    <macrodef name="foo">
+      <element name="nested" implicit="yes" optional="yes"/>
+      <sequential>
+        <fileset id="abc" dir=".">
+          <nested/>
+        </fileset>
+      </sequential>
+    </macrodef>
+
+    <ant antfile="build-embedded-ref.xml" inheritRefs="true"/>
+  </target>
+
+  <condition property="allow.script">
+    <and>
+      <available classname="org.apache.bsf.BSFManager" />
+      <available classname="bsh.StringUtil" />
+    </and>
+  </condition>
+
+  <target name="test-script" if="allow.script">
+    <!-- bugzilla: 37688 -->
+    <macrodef name="compileMapper" >
+      <attribute name="objDir" />
+      <attribute name="id" default="compileMapperID" />
+      <sequential>
+        <mkdir dir="@{objDir}"/>
+        <mapper id="@{id}">
+          <chainedmapper  >
+            <flattenmapper/>
+            <globmapper from="*" to="@{objDir}/*.o"/>
+          </chainedmapper>
+        </mapper>
+      </sequential>
+    </macrodef>
+    <script language="beanshell"/>
+  </target>
+
+  <target name="all">
+    <au:antunit>
+      <fileset file="${ant.file}"/>
+      <au:plainlistener/>
+    </au:antunit>
+  </target>
+
+  
+</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org