You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2019/02/23 08:24:55 UTC

[karaf] branch master updated: [KARAF-6167] Add skip option on the client MOJO

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/master by this push:
     new a2ec54d  [KARAF-6167] Add skip option on the client MOJO
     new 9faf855  Merge pull request #771 from jbonofre/KARAF-6167
a2ec54d is described below

commit a2ec54d2f847130658edef91d4a0d6895271f84f
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Thu Feb 21 18:45:54 2019 +0100

    [KARAF-6167] Add skip option on the client MOJO
---
 .../src/main/java/org/apache/karaf/tooling/client/ClientMojo.java  | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/client/ClientMojo.java b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/client/ClientMojo.java
index 1a1871a..1d5cc1e 100644
--- a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/client/ClientMojo.java
+++ b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/client/ClientMojo.java
@@ -92,9 +92,16 @@ public class ClientMojo extends AbstractMojo {
     @Parameter
     private File keyFile;
 
+    @Parameter(property = "skip", defaultValue = "false")
+    private boolean skip;
+
     private static final String NEW_LINE = System.getProperty("line.separator");
 
     public void execute() throws MojoExecutionException {
+        if (skip || (System.getProperty("client.skip") != null && System.getProperty("client.skip").equalsIgnoreCase("true"))) {
+            getLog().info("Client execution is skipped");
+            return;
+        }
         // ranking the commands and scripts
         Comparator<CommandDescriptor> comparator = Comparator.comparingInt(CommandDescriptor::getRank);
         SortedSet<CommandDescriptor> sortedCommands = new TreeSet<>(comparator);