This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 129772
Collapse All | Expand All

(-)a/o.n.bootstrap/src/org/netbeans/JarClassLoader.java (-1 / +17 lines)
Lines 76-81 Link Here
76
import java.util.jar.Manifest;
76
import java.util.jar.Manifest;
77
import java.util.logging.Level;
77
import java.util.logging.Level;
78
import java.util.logging.Logger;
78
import java.util.logging.Logger;
79
import java.util.regex.Pattern;
79
import java.util.zip.ZipEntry;
80
import java.util.zip.ZipEntry;
80
81
81
/**
82
/**
Lines 346-351 Link Here
346
    }
347
    }
347
348
348
    static class JarSource extends Source {
349
    static class JarSource extends Source {
350
351
        private static final Pattern PLAIN_JAR_PROTOCOL;
352
        static {
353
            Pattern p = null;
354
            String prop = System.getProperty("org.netbeans.JarClassLoader.PLAIN_JAR_PROTOCOL");
355
            if (prop != null) {
356
                p = Pattern.compile(prop);
357
            }
358
            PLAIN_JAR_PROTOCOL = p;
359
        }
360
349
        private String resPrefix;
361
        private String resPrefix;
350
        private File file;
362
        private File file;
351
363
Lines 356-362 Link Here
356
        
368
        
357
        JarSource(File file) throws IOException {
369
        JarSource(File file) throws IOException {
358
            super(file.toURL());
370
            super(file.toURL());
359
            resPrefix = ResURLStreamHandler.RES_PROTO +":" + file.toURI() + "!/"; // NOI18N;
371
            if (PLAIN_JAR_PROTOCOL != null && PLAIN_JAR_PROTOCOL.matcher(file.getAbsolutePath()).matches()) {
372
                resPrefix = "jar:" + file.toURI() + "!/"; // NOI18N
373
            } else {
374
                resPrefix = ResURLStreamHandler.RES_PROTO + ":" + file.toURI() + "!/"; // NOI18N;
375
            }
360
            this.file = file;
376
            this.file = file;
361
        }
377
        }
362
378

Return to bug 129772