This is an automated email from the ASF dual-hosted git repository. hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.1 in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git
commit 6c985d81eb08bac0194e25255b306da6a9a389b5 Author: John Dennis Casey <jdca...@apache.org> AuthorDate: Wed Oct 3 04:37:49 2007 +0000 Adding skip flag to enable fine-grained control over existing plugin configurations from within a profile, simply by setting a flag. git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@581491 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/plugin/invoker/InvokerMojo.java | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java index e3da80a..90b00c4 100644 --- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java +++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java @@ -19,9 +19,6 @@ package org.apache.maven.plugin.invoker; * under the License. */ -import bsh.EvalError; -import bsh.Interpreter; - import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; @@ -51,6 +48,9 @@ import java.util.List; import java.util.Properties; import java.util.StringTokenizer; +import bsh.EvalError; +import bsh.Interpreter; + /** * Searches for integration test Maven projects, and executes each, collecting a log in the project directory, and * outputting the results to the screen. @@ -64,6 +64,14 @@ public class InvokerMojo extends AbstractMojo { /** + * Flag used to suppress certain invocations. This is useful in tailoring the + * build using profiles. + * + * @parameter default-value="false" + */ + private boolean skipInvocation; + + /** * Flag used to suppress the summary output notifying of successes and failures. If set to true, * the only indication of the build's success or failure will be the effect it has on the main * build (if it fails, the main build should fail as well). If streamLogs is enabled, the sub-build @@ -199,6 +207,12 @@ public class InvokerMojo public void execute() throws MojoExecutionException, MojoFailureException { + if ( skipInvocation ) + { + getLog().info( "Skipping invocation per configuration. If this is incorrect, ensure the skipInvocation parameter is not set to true." ); + return; + } + String[] includedPoms; if ( pom != null ) { -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.