From eaa4da45fa4707d83fe1f4e6ff5e5d70849d5570 Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Wed, 19 Mar 2014 00:00:37 +0400 Subject: [PATCH] maven-teavm-plugin is capable of skipping tests --- .../main/java/org/teavm/maven/BuildJavascriptTestMojo.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java b/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java index cc4ae0743..b0794db1c 100644 --- a/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java +++ b/teavm-maven-plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java @@ -142,6 +142,11 @@ public class BuildJavascriptTestMojo extends AbstractMojo { @Override 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; try { final ClassLoader classLoader = prepareClassLoader();