Author: bodewig
Date: Sat Aug 22 05:40:05 2009
New Revision: 806788
URL: http://svn.apache.org/viewvc?rev=806788&view=rev
Log:
It looks as if zip had a different idea on how timestamps relate to timezone
than the other three archive formats. Try to see whether the change makes the
ar test pass in Gump
Modified:
ant/sandbox/antlibs/compress/trunk/src/tests/antunit/ar-test.xml
Modified: ant/sandbox/antlibs/compress/trunk/src/tests/antunit/ar-test.xml
URL:
http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/tests/antunit/ar-test.xml?rev=806788&r1=806787&r2=806788&view=diff
==============================================================================
--- ant/sandbox/antlibs/compress/trunk/src/tests/antunit/ar-test.xml (original)
+++ ant/sandbox/antlibs/compress/trunk/src/tests/antunit/ar-test.xml Sat Aug 22
05:40:05 2009
@@ -26,6 +26,7 @@
<mkdir dir="${output}"/>
<property name="dest" location="${output}/test.ar"/>
<macrodef name="checkProperties">
+ <attribute name="pattern" default="yyyy-MM-dd-HH:mm:ss Z"/>
<attribute name="dateTime"/>
<attribute name="uid" default="0"/>
<attribute name="gid" default="0"/>
@@ -33,7 +34,7 @@
<sequential>
<au:assertTrue>
<cond:islastmodified datetime="@{dateTime}"
- pattern="yyyy-MM-dd-HH:mm:ss Z">
+ pattern="@{pattern}">
<cmp:arentry name="asf-logo.gif">
<file file="${dest}"/>
</cmp:arentry>
@@ -81,7 +82,9 @@
<zipfileset src="../resources/asf-logo.gif.zip"
includes="asf-logo.gif"/>
</cmp:ar>
- <checkProperties dateTime="2001-11-19-15:34:20 +0100" mode="33188"/>
+ <checkProperties dateTime="2001-11-19-15:34:20"
+ pattern="yyyy-MM-dd-HH:mm:ss"
+ mode="33188"/>
</target>
<target name="testAntlibZipFileSet" depends="setUp">
@@ -89,7 +92,9 @@
<cmp:zipfileset src="../resources/asf-logo.gif.zip"
includes="asf-logo.gif"/>
</cmp:ar>
- <checkProperties dateTime="2001-11-19-15:34:20 +0100" mode="33188"/>
+ <checkProperties dateTime="2001-11-19-15:34:20"
+ pattern="yyyy-MM-dd-HH:mm:ss"
+ mode="33188"/>
</target>
<target name="testCoreTarFileSet" depends="setUp">