maven-teavm-plugin is capable of skipping tests

This commit is contained in:
konsoletyper 2014-03-19 00:00:37 +04:00
parent 037538c416
commit eaa4da45fa

View File

@ -142,6 +142,11 @@ public class BuildJavascriptTestMojo extends AbstractMojo {
@Override @Override
public void execute() throws MojoExecutionException, MojoFailureException { public void execute() throws MojoExecutionException, MojoFailureException {
if (System.getProperty("maven.test.skip", "false").equals("true") ||
System.getProperty("skipTests") != null) {
getLog().info("Tests build skipped as specified by system property");
return;
}
Runnable finalizer = null; Runnable finalizer = null;
try { try {
final ClassLoader classLoader = prepareClassLoader(); final ClassLoader classLoader = prepareClassLoader();