Revision edb488c8
Added by Katja Luther almost 2 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationState.java | ||
---|---|---|
214 | 214 |
File file = null; |
215 | 215 |
try { |
216 | 216 |
String urlString = FileLocator.resolve(fileURL).toExternalForm().replace(" ", "%20"); |
217 |
|
|
217 | 218 |
file = new File(new URI(urlString).getJavaUri()); |
218 | 219 |
JarFile jarFile = new JarFile(file); |
219 | 220 |
Manifest manifest = jarFile.getManifest(); |
... | ... | |
233 | 234 |
throw new IllegalStateException(urise); |
234 | 235 |
} catch (IOException ioe) { |
235 | 236 |
throw new IllegalStateException(ioe); |
236 |
} |
|
237 |
} catch (IllegalArgumentException iae) { |
|
238 |
String message = iae.getMessage().concat("uri" + jar); |
|
239 |
throw new IllegalStateException(message); |
|
240 |
} |
|
237 | 241 |
} |
238 | 242 |
} |
239 | 243 |
} catch (BundleException e) { |
Also available in: Unified diff
test