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 Tue Feb 24 11:12:53 2015 +0100
1.2 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java Mon Mar 28 05:55:43 2016 +0200
1.3 @@ -24,11 +24,10 @@
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 +import java.util.regex.Pattern;
1.13
1.14 /**
1.15 * Lightweight server to launch Bck2Brwsr applications and tests.
1.16 @@ -59,6 +58,10 @@
1.17 } catch (URISyntaxException ex) {
1.18 throw new IOException(ex);
1.19 }
1.20 + final String precompile = System.getProperty("vmtest.precompiled");
1.21 + if (precompile != null && Pattern.compile(precompile).matcher(jar.toString()).find()) {
1.22 + throw new IOException("Compilation of " + jar + " forbidden");
1.23 + }
1.24 LOG.log(Level.INFO, "No precompiled version for {0} found. Compiling.", jar);
1.25 return CompileCP.compileJAR(f, testClasses);
1.26 }