ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/zip ZipFile.java
Date Sun, 12 Dec 2004 20:54:42 GMT
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


Mime
View raw message