ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r453033 - /ant/core/trunk/src/tests/antunit/types/zipfileset-test.xml
Date Wed, 04 Oct 2006 21:22:31 GMT
Author: peterreilly
Date: Wed Oct  4 14:22:31 2006
New Revision: 453033

URL: http://svn.apache.org/viewvc?view=rev&rev=453033
Log:
testcase for setting attributes with refid for zipfileset

Added:
    ant/core/trunk/src/tests/antunit/types/zipfileset-test.xml

Added: ant/core/trunk/src/tests/antunit/types/zipfileset-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/zipfileset-test.xml?view=auto&rev=453033
==============================================================================
--- ant/core/trunk/src/tests/antunit/types/zipfileset-test.xml (added)
+++ ant/core/trunk/src/tests/antunit/types/zipfileset-test.xml Wed Oct  4 14:22:31 2006
@@ -0,0 +1,35 @@
+<project xmlns:au="antlib:org.apache.ant.antunit" default="all">
+
+  <target name="test-refid-check-prefix">
+    <zipfileset id="test-refid"
+                dir="${basedir}"/>
+    <au:expectfailure>
+      <zipfileset id="ref2"
+                  refid="test-refid"
+                  prefix="WEB-INF/lib/"/>
+    </au:expectfailure>
+    <au:expectfailure>
+      <zipfileset id="ref3"
+                  prefix="WEB-INF/lib/"
+                  ReFiD="test-refid"/>
+    </au:expectfailure>
+  </target>
+
+  <target name="test-refid-check-encoding">
+    <zipfileset id="test-refid2"
+                encoding="utf-8"
+                dir="${basedir}"/>
+    <au:expectfailure>
+      <zipfileset id="ref4"
+                  encoding="utf-8"
+                  refid="test-refid2"/>
+    </au:expectfailure>
+  </target>
+
+  <target name="all">
+    <au:antunit>
+      <fileset dir="${basedir}" includes="zipfileset-test.xml"/>
+      <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


Mime
View raw message