diff -r ea12a3bb4b33 -r 88b00e03fc8f launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java Tue Feb 24 11:12:53 2015 +0100 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/Bck2BrwsrLauncher.java Mon Mar 28 05:55:43 2016 +0200 @@ -24,11 +24,10 @@ import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; -import java.util.Arrays; import java.util.HashSet; -import java.util.List; import java.util.Set; import java.util.logging.Level; +import java.util.regex.Pattern; /** * Lightweight server to launch Bck2Brwsr applications and tests. @@ -59,6 +58,10 @@ } catch (URISyntaxException ex) { throw new IOException(ex); } + final String precompile = System.getProperty("vmtest.precompiled"); + if (precompile != null && Pattern.compile(precompile).matcher(jar.toString()).find()) { + throw new IOException("Compilation of " + jar + " forbidden"); + } LOG.log(Level.INFO, "No precompiled version for {0} found. Compiling.", jar); return CompileCP.compileJAR(f, testClasses); }