diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-25 22:05:10 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-25 22:05:10 +0100 |
commit | 63e4e5fac646766d8e574e2e9a539e03f54fd87c (patch) | |
tree | 50867cff931a9ea7eddaa4fa9d910c746c552601 /module/ri-engine/src/main/java/io/trygvis | |
parent | 912bc8b903dfa6d438c2469ecdad35c181c71830 (diff) | |
download | rules-sandbox-63e4e5fac646766d8e574e2e9a539e03f54fd87c.tar.gz rules-sandbox-63e4e5fac646766d8e574e2e9a539e03f54fd87c.tar.bz2 rules-sandbox-63e4e5fac646766d8e574e2e9a539e03f54fd87c.tar.xz rules-sandbox-63e4e5fac646766d8e574e2e9a539e03f54fd87c.zip |
wip
Diffstat (limited to 'module/ri-engine/src/main/java/io/trygvis')
-rw-r--r-- | module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java | 2 | ||||
-rw-r--r-- | module/ri-engine/src/main/java/io/trygvis/rules/engine/cli/RunCommand.java | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java b/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java index 3db1625..e5b9606 100644 --- a/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java +++ b/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java @@ -26,6 +26,8 @@ public class Engine implements Closeable { var services = KieServices.Factory.get(); + logger.info("services = {}", services); + ReleaseId releaseId = null; for (File path : (modules == null ? new File[0] : modules)) { logger.info("New KieBuilder: {}", path); diff --git a/module/ri-engine/src/main/java/io/trygvis/rules/engine/cli/RunCommand.java b/module/ri-engine/src/main/java/io/trygvis/rules/engine/cli/RunCommand.java index 345d8b8..2b016f2 100644 --- a/module/ri-engine/src/main/java/io/trygvis/rules/engine/cli/RunCommand.java +++ b/module/ri-engine/src/main/java/io/trygvis/rules/engine/cli/RunCommand.java @@ -26,12 +26,11 @@ public class RunCommand implements Callable<Integer> { @Option(names = {"--agenda-groups"}) public String[] agendaGroups; - @Option(names = {"--modules"}, split = ",") + @Option(names = {"--modules"}, split = ",", arity = "1..*") public File[] modules; @Override public Integer call() throws Exception { - System.out.println("RunCommand.call"); if (agendaGroups == null || agendaGroups.length == 0) { agendaGroups = new String[]{"init", "generate"}; @@ -45,11 +44,8 @@ public class RunCommand implements Callable<Integer> { o.getClass().getSimpleName().contains("Ipv4Cidr") || o.getClass().getSimpleName().contains("Ipv4Address") ); - System.out.println("RunCommand.call"); } - System.out.println("RunCommand.call"); - return 0; } } |