launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java
branchclosure
changeset 1599 36746c46716a
parent 1598 ec62383beb7d
child 1746 001275142bf7
     1.1 --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java	Mon May 26 16:20:51 2014 +0200
     1.2 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java	Mon May 26 17:52:56 2014 +0200
     1.3 @@ -18,16 +18,14 @@
     1.4  package org.apidesign.bck2brwsr.launcher;
     1.5  
     1.6  import java.io.File;
     1.7 -import java.io.FileReader;
     1.8  import java.io.IOException;
     1.9 -import java.io.InputStream;
    1.10  import java.io.InputStreamReader;
    1.11  import java.io.Reader;
    1.12  import java.net.MalformedURLException;
    1.13 +import java.net.URISyntaxException;
    1.14  import java.net.URL;
    1.15  import java.util.HashSet;
    1.16  import java.util.Set;
    1.17 -import java.util.jar.JarFile;
    1.18  import java.util.logging.Level;
    1.19  
    1.20  /**
    1.21 @@ -48,8 +46,14 @@
    1.22      }
    1.23  
    1.24      @Override
    1.25 -    String compileJar(JarFile jar) throws IOException {
    1.26 -        return CompileCP.compileJAR(jar, testClasses);
    1.27 +    String compileJar(URL jar) throws IOException {
    1.28 +        File f;
    1.29 +        try {
    1.30 +            f = new File(jar.toURI());
    1.31 +        } catch (URISyntaxException ex) {
    1.32 +            throw new IOException(ex);
    1.33 +        }
    1.34 +        return CompileCP.compileJAR(f, testClasses);
    1.35      }
    1.36  
    1.37      @Override