This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-170
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-170 by this push:
new c2aba1a Update NCCli.scala
c2aba1a is described below
commit c2aba1a638003e4e610bfc7881f7ddac2d84bd36
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Dec 11 17:55:42 2020 -0800
Update NCCli.scala
---
.../scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index 4f4b47b..9342119 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -1788,7 +1788,7 @@ object NCCli extends App {
srvArgs += "--illegal-access=permit"
srvArgs += "-DNLPCRAFT_ANSI_COLOR_DISABLED=true" // No ANSI colors for
text log output to the file.
srvArgs += "-cp"
- srvArgs += s"$JAVA_CP"
+ srvArgs += JAVA_CP
srvArgs += "org.apache.nlpcraft.NCStart"
srvArgs += "-server"
srvArgs += (
@@ -1991,7 +1991,10 @@ object NCCli extends App {
prbArgs += JAVA
prbArgs ++= jvmOpts
prbArgs += "-DNLPCRAFT_ANSI_COLOR_DISABLED=true" // No ANSI colors for
text log output to the file.
- prbArgs += (if (mdls == null) "" else
"-Dconfig.override_with_env_vars=true")
+
+ if (mdls != null)
+ prbArgs += "-Dconfig.override_with_env_vars=true"
+
prbArgs += "-cp"
prbArgs += (if (addCp == null) JAVA_CP else
s"$JAVA_CP$sep$addCp".replace(s"$sep$sep", sep))
prbArgs += "org.apache.nlpcraft.NCStart"
@@ -2005,6 +2008,8 @@ object NCCli extends App {
val prbPb = new ProcessBuilder(prbArgs.asJava)
+ println(prbPb.command())
+
if (mdls != null)
prbPb.environment().put("CONFIG_FORCE_nlpcraft_probe_models", mdls)
@@ -2015,7 +2020,7 @@ object NCCli extends App {
JAVA,
"-ea",
"-cp",
- s"$JAVA_CP",
+ JAVA_CP,
"org.apache.nlpcraft.model.tools.cmdline.NCCliAnsiBleach"
)