1.1 --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java Tue Apr 29 14:59:40 2014 +0200
1.2 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java Wed Apr 30 15:04:10 2014 +0200
1.3 @@ -93,7 +93,7 @@
1.4 .resources(new EmulationResources() {
1.5 @Override
1.6 public InputStream get(String resource) throws IOException {
1.7 - return r != null ? r.get(resource).openStream() : super.get(resource);
1.8 + return r != null ? r.get(resource, 0).openStream() : super.get(resource);
1.9 }
1.10 })
1.11 .generate(w);
1.12 @@ -156,7 +156,7 @@
1.13 }
1.14
1.15 static void compileVM(StringBuilder sb, final Res r) throws IOException {
1.16 - URL u = r.get(InterruptedException.class.getName().replace('.', '/') + ".class");
1.17 + URL u = r.get(InterruptedException.class.getName().replace('.', '/') + ".class", 0);
1.18 JarURLConnection juc = (JarURLConnection)u.openConnection();
1.19
1.20 List<String> arr = new ArrayList<>();
1.21 @@ -167,7 +167,7 @@
1.22 .resources(new Bck2Brwsr.Resources() {
1.23 @Override
1.24 public InputStream get(String resource) throws IOException {
1.25 - return r.get(resource).openStream();
1.26 + return r.get(resource, 0).openStream();
1.27 }
1.28 }).generate(sb);
1.29 }