diff options
Diffstat (limited to 'module/ri-engine/src/main/java')
-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; } } |