You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jk...@apache.org on 2004/12/12 21:54:42 UTC
cvs commit: ant/src/main/org/apache/tools/zip ZipFile.java
jkf 2004/12/12 12:54:42
Modified: src/main/org/apache/tools/zip ZipFile.java
Log:
Minor update to allow compilation on 1.2.2 again:
cal.getTimeInMillis(); is not available.
Revision Changes Path
1.16 +2 -2 ant/src/main/org/apache/tools/zip/ZipFile.java
Index: ZipFile.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/zip/ZipFile.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ZipFile.java 4 Dec 2004 00:03:50 -0000 1.15
+++ ZipFile.java 12 Dec 2004 20:54:42 -0000 1.16
@@ -461,7 +461,7 @@
cal.set(Calendar.HOUR_OF_DAY, (int) (dosTime >> 11) & 0x1f);
cal.set(Calendar.MINUTE, (int) (dosTime >> 5) & 0x3f);
cal.set(Calendar.SECOND, (int) (dosTime << 1) & 0x3e);
- return cal.getTimeInMillis();
+ return cal.getTime().getTime();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org