Revision 32516 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.impl/src/main/java/org/gvsig/installer/lib/impl/utils/Compress.java
Compress.java | ||
---|---|---|
64 | 64 |
public void compressPlugins(List<File> files, List<String> fileNames, OutputStream os) throws InstallerCreationServiceException { |
65 | 65 |
try{ |
66 | 66 |
ZipOutputStream zos = new ZipOutputStream(new BufferedOutputStream(os)); |
67 |
byte[] buf = new byte[1024]; |
|
68 |
int len; |
|
69 |
|
|
67 |
|
|
70 | 68 |
for (int i=0 ; i<files.size() ; i++){ |
71 | 69 |
File file = files.get(i); |
72 | 70 |
|
73 |
int parentFileLenght = file.getParentFile().toString().length(); |
|
74 |
String pluginName = file.toString().substring(parentFileLenght, file.toString().length()); |
|
71 |
int parentFileLenght = file.getParentFile().toString().length(); |
|
75 | 72 |
|
76 | 73 |
ZipEntry zipEntry = new ZipEntry(fileNames.get(i)); |
77 | 74 |
zos.putNextEntry(zipEntry); |
Also available in: Unified diff