Changeset 782 for java/installer2/src/net/oni2
- Timestamp:
- Apr 3, 2013, 2:15:54 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/packages/unpack/Unpacker.java
r781 r782 6 6 import java.io.InputStream; 7 7 import java.util.Enumeration; 8 import java.util.zip.ZipEntry;9 8 import java.util.zip.ZipException; 10 import java.util.zip.ZipFile;11 9 10 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; 11 import org.apache.commons.compress.archivers.zip.ZipFile; 12 12 import org.apache.commons.io.FileUtils; 13 13 … … 124 124 target.mkdirs(); 125 125 126 for (Enumeration<? extends Zip Entry> e = zf.entries(); e126 for (Enumeration<? extends ZipArchiveEntry> e = zf.getEntries(); e 127 127 .hasMoreElements();) { 128 Zip Entry ze = e.nextElement();128 ZipArchiveEntry ze = e.nextElement(); 129 129 if (ze.getName().toLowerCase() 130 130 .endsWith("/mod_info.cfg") … … 138 138 } 139 139 140 for (Enumeration<? extends Zip Entry> e = zf.entries(); e140 for (Enumeration<? extends ZipArchiveEntry> e = zf.getEntries(); e 141 141 .hasMoreElements();) { 142 142 if (state == EState.INTERRUPTED) 143 143 return; 144 Zip Entry ze = e.nextElement();144 ZipArchiveEntry ze = e.nextElement(); 145 145 if (!ze.isDirectory()) { 146 146 if (ze.getName().startsWith(pathStartName)) { … … 163 163 } 164 164 fileOut.close(); 165 166 if ((ze.getUnixMode() & 0x0111) != 0) 167 targetFile.setExecutable(true); 165 168 } 166 169 }
Note:
See TracChangeset
for help on using the changeset viewer.