launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java
1.1 --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java Mon May 26 17:52:56 2014 +0200
1.2 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java Mon Dec 08 00:22:49 2014 +0100
1.3 @@ -24,7 +24,9 @@
1.4 import java.net.MalformedURLException;
1.5 import java.net.URISyntaxException;
1.6 import java.net.URL;
1.7 +import java.util.Arrays;
1.8 import java.util.HashSet;
1.9 +import java.util.List;
1.10 import java.util.Set;
1.11 import java.util.logging.Level;
1.12
1.13 @@ -46,13 +48,18 @@
1.14 }
1.15
1.16 @Override
1.17 - String compileJar(URL jar) throws IOException {
1.18 + Object compileJar(URL jar, URL precompiled) throws IOException {
1.19 + if (precompiled != null) {
1.20 + LOG.log(Level.INFO, "Found precompiled JAR version of {0} at {1}. Using.", new Object[]{jar, precompiled});
1.21 + return precompiled.openStream();
1.22 + }
1.23 File f;
1.24 try {
1.25 f = new File(jar.toURI());
1.26 } catch (URISyntaxException ex) {
1.27 throw new IOException(ex);
1.28 }
1.29 + LOG.log(Level.INFO, "No precompiled version for {0} found. Compiling.", jar);
1.30 return CompileCP.compileJAR(f, testClasses);
1.31 }
1.32