launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/BaseHTTPLauncher.java
branchclosure
changeset 1599 36746c46716a
parent 1530 45c50b9c7dc4
child 1614 8eba262bd8cd
     1.1 --- a/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/BaseHTTPLauncher.java	Mon May 05 13:49:05 2014 +0200
     1.2 +++ b/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/BaseHTTPLauncher.java	Mon May 26 17:52:56 2014 +0200
     1.3 @@ -562,7 +562,7 @@
     1.4  
     1.5      abstract void generateBck2BrwsrJS(StringBuilder sb, Res loader) throws IOException;
     1.6      abstract String harnessResource();
     1.7 -    String compileJar(JarFile jar) throws IOException {
     1.8 +    String compileJar(URL jar) throws IOException {
     1.9          return null;
    1.10      }
    1.11      String compileFromClassPath(URL f, Res loader) throws IOException {
    1.12 @@ -582,8 +582,8 @@
    1.13      final class Res {
    1.14          private final Set<URL> ignore = new HashSet<URL>();
    1.15          
    1.16 -        String compileJar(JarFile jar, URL jarURL) throws IOException {
    1.17 -            String ret = BaseHTTPLauncher.this.compileJar(jar);
    1.18 +        String compileJar(URL jarURL) throws IOException {
    1.19 +            String ret = BaseHTTPLauncher.this.compileJar(jarURL);
    1.20              ignore.add(jarURL);
    1.21              return ret;
    1.22          }
    1.23 @@ -745,7 +745,7 @@
    1.24                  response.setCharacterEncoding("UTF-8");
    1.25                  if (url.getProtocol().equals("jar")) {
    1.26                      JarURLConnection juc = (JarURLConnection) url.openConnection();
    1.27 -                    String s = loader.compileJar(juc.getJarFile(), juc.getJarFileURL());
    1.28 +                    String s = loader.compileJar(juc.getJarFileURL());
    1.29                      if (s != null) {
    1.30                          Writer w = response.getWriter();
    1.31                          w.append(s);