summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2011-08-02 04:16:20 (EDT)
committer Karsten Thoms2011-08-02 04:16:20 (EDT)
commit8368edf59e0ec9409117b1aa03b21a665f4bcc33 (patch)
tree3e38a207bbeb48ed5d08f21cb2055545ebc06a53
parent596dc2bf6ad333a1e45aa704c7dbe7af44f63e40 (diff)
downloadorg.eclipse.mwe-8368edf59e0ec9409117b1aa03b21a665f4bcc33.zip
org.eclipse.mwe-8368edf59e0ec9409117b1aa03b21a665f4bcc33.tar.gz
org.eclipse.mwe-8368edf59e0ec9409117b1aa03b21a665f4bcc33.tar.bz2
Fixed Bug#353544 - Catch ZipException when opening a corrupt Jar file and raise a warning for this
-rw-r--r--plugins/org.eclipse.emf.mwe.utils/src/org/eclipse/emf/mwe/utils/StandaloneSetup.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.mwe.utils/src/org/eclipse/emf/mwe/utils/StandaloneSetup.java b/plugins/org.eclipse.emf.mwe.utils/src/org/eclipse/emf/mwe/utils/StandaloneSetup.java
index fd976b8..0477d22 100644
--- a/plugins/org.eclipse.emf.mwe.utils/src/org/eclipse/emf/mwe/utils/StandaloneSetup.java
+++ b/plugins/org.eclipse.emf.mwe.utils/src/org/eclipse/emf/mwe/utils/StandaloneSetup.java
@@ -23,6 +23,7 @@ import java.util.Map.Entry;
import java.util.Set;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
+import java.util.zip.ZipException;
import javax.xml.parsers.DocumentBuilderFactory;
@@ -180,6 +181,9 @@ public class StandaloneSetup {
EcorePlugin.getPlatformResourceMap().put(name, uri);
}
}
+ catch (ZipException e) {
+ log.warn("Could not open Jar file "+file.getAbsolutePath()+".");
+ }
catch (IOException e) {
throw new RuntimeException(e);
}