Project

General

Profile

« Previous | Next » 

Revision cc712487

Added by Cherian Mathew over 8 years ago

#5320 Fix whitespace problem

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationState.java
14 14
import java.lang.reflect.InvocationTargetException;
15 15
import java.lang.reflect.Method;
16 16
import java.lang.reflect.Type;
17
import java.net.URI;
17 18
import java.net.URISyntaxException;
18 19
import java.net.URL;
19 20
import java.util.Dictionary;
......
245 246
                    URL fileURL = bundle.getEntry(jar);
246 247
                    File file = null;
247 248
                    try {
248
                        file = new File(FileLocator.resolve(fileURL).toURI());
249
                        String urlString = FileLocator.resolve(fileURL).toExternalForm().replace(" ", "%20");;
250
                        file = new File(new URI(urlString));
249 251
                        JarFile jarFile = new JarFile(file);
250 252
                        Manifest manifest = jarFile.getManifest();
251 253
                        Attributes attributes = manifest.getMainAttributes();
......
256 258
                        cdmlibVersion = attributes.getValue("Bundle-Version");
257 259
                        cdmlibLastModified = attributes.getValue("Bnd-LastModified");
258 260

  
261
                        jarFile.close();
259 262
                        if(cdmlibVersion == null || cdmlibLastModified == null) {
260 263
                            throw new IllegalStateException("Invalid cdmlib manifest info");
261 264
                        }

Also available in: Unified diff