Revision 38791
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/Decompress.java | ||
---|---|---|
306 | 306 |
|
307 | 307 |
private void decompressPlugin(InputStream inputStream) throws ZipException, |
308 | 308 |
IOException, InstallerInfoFileException { |
309 |
|
|
310 |
boolean show_in_status_bar = false; |
|
311 |
|
|
309 | 312 |
ZipInputStream zis = null; |
310 | 313 |
ZipEntry entry = null; |
311 | 314 |
byte data[] = new byte[BUFFER]; |
... | ... | |
314 | 317 |
TaskStatusManager manager = ToolsLocator.getTaskStatusManager(); |
315 | 318 |
SimpleTaskStatus taskStatus = manager |
316 | 319 |
.creteDefaultSimpleTaskStatus("Uncompressing..."); |
317 |
manager.add(taskStatus); |
|
320 |
|
|
321 |
if (show_in_status_bar) { |
|
322 |
manager.add(taskStatus); |
|
323 |
} |
|
324 |
|
|
318 | 325 |
long readed = 0; |
319 | 326 |
|
320 | 327 |
// // First read all the contents size |
... | ... | |
356 | 363 |
} |
357 | 364 |
} |
358 | 365 |
zis.close(); |
359 |
taskStatus.remove(); |
|
366 |
|
|
367 |
if (show_in_status_bar) { |
|
368 |
taskStatus.remove(); |
|
369 |
} |
|
360 | 370 |
} |
361 | 371 |
|
362 | 372 |
private void createParentFolder(File file) { |
Also available in: Unified diff