Give intellij its jar hell back. This is not an invitation for more leniency.

This commit is contained in:
Robert Muir 2015-09-08 15:30:44 -04:00
parent 81223179df
commit 164cf2775f
1 changed files with 7 additions and 1 deletions

View File

@ -61,7 +61,13 @@ public class BootstrapForTesting {
try {
JarHell.checkJarHell();
} catch (Exception e) {
throw new RuntimeException("found jar hell in test classpath", e);
if (Boolean.parseBoolean(System.getProperty("tests.maven"))) {
throw new RuntimeException("found jar hell in test classpath", e);
} else {
Loggers.getLogger(BootstrapForTesting.class)
.warn("Your ide or custom test runner has jar hell issues, " +
"you might want to look into that", e);
}
}
// make sure java.io.tmpdir exists always (in case code uses it in a static initializer)