notifyListeners(getLineBreak());
try {
if (Utils.isWebStart()) {
ZipExtractor extractor;
setCurrentProgressStep(UpgradeProgressStep.DOWNLOADING);
try {
LOG.log(Level.INFO, "Waiting for Java Web Start jar download");
waitForLoader(UpgradeProgressStep.EXTRACTING.getProgress());
LOG.log(Level.INFO, "Downloaded build file");
String zipName = WebStartDownloader.getZipFileName();
InputStream in =
Upgrader.class.getClassLoader().getResourceAsStream(zipName);
extractor = new ZipExtractor(in,
UpgradeProgressStep.EXTRACTING.getProgress(),
UpgradeProgressStep.INITIALIZING.getProgress(),
Utils.getNumberZipEntries(), zipName, this);
} catch (ApplicationException e) {
LOG.log(Level.SEVERE, "Error downloading Web Start jars", e);
throw e;
}
notifyListeners(getFormattedDoneWithLineBreak());
checkAbort();
try {
setCurrentProgressStep(UpgradeProgressStep.EXTRACTING);
if (isVerbose())
{
notifyListeners(getLineBreak());
}
extractor.extract(getStageDirectory());
if (!isVerbose())
{
notifyListeners(getFormattedDoneWithLineBreak());
}
else