You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ff...@apache.org on 2019/10/03 15:29:02 UTC

[karaf] branch master updated: [KARAF-6445][karaf-maven-plugin] client goal: ensure commands in script file will be executed in expected order

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

ffang 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 40509fa  [KARAF-6445][karaf-maven-plugin] client goal: ensure commands in script file will be executed in expected order
40509fa is described below

commit 40509fade4266ec2f2362f12fb552d1771c4c970
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Thu Oct 3 11:28:42 2019 -0400

    [KARAF-6445][karaf-maven-plugin] client goal: ensure commands in script file will be executed in expected order
---
 .../src/main/java/org/apache/karaf/tooling/client/ClientMojo.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 5c9b9e0..d074167 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
@@ -117,7 +117,7 @@ public class ClientMojo extends AbstractMojo {
                         descriptor.setCommand(line);
                         double rankSuffix = 0.5;
                         for (int j = 0; j < lineIndex; j++) {
-                            rankSuffix = rankSuffix * 0.1;
+                            rankSuffix = rankSuffix + 0.00001;
                         }
                         descriptor.setRank(script.getRank() + rankSuffix);
                         lineIndex++;