commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r760390 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
Date Tue, 31 Mar 2009 10:35:55 GMT
Author: sebb
Date: Tue Mar 31 10:35:53 2009
New Revision: 760390

URL: http://svn.apache.org/viewvc?rev=760390&view=rev
Log:
Set some attributes from the File

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java?rev=760390&r1=760389&r2=760390&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
Tue Mar 31 10:35:53 2009
@@ -87,6 +87,8 @@
 
     public ZipArchiveEntry(File inputFile, String entryName) {
         this(entryName);
+        setSize(inputFile.length());
+        setTime(inputFile.lastModified());
         // TODO are there any other fields we can set here?
     }
 



Mime
View raw message