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 866b3bf  Update NCCli.scala
866b3bf is described below

commit 866b3bf172dcf7b694ae4ef17ebbca76cd99bc1a
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Dec 11 17:39:20 2020 -0800

    Update NCCli.scala
---
 .../main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala    | 4 ++--
 1 file changed, 2 insertions(+), 2 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 f682ea0..4f4b47b 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
@@ -1947,7 +1947,7 @@ object NCCli extends App {
         val noWait = args.exists(_.parameter.id == "noWait")
         val addCp = args.find(_.parameter.id == "cp") match {
             case Some(cp) ⇒ cp.value.get
-            case None ⇒ ""
+            case None ⇒ null
         }
         val timeoutMins = args.find(_.parameter.id == "timeoutMins") match {
             case Some(arg) ⇒
@@ -1993,7 +1993,7 @@ object NCCli extends App {
         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")
         prbArgs += "-cp"
-        prbArgs += s"$JAVA_CP$sep$addCp".replace(s"$sep$sep", sep)
+        prbArgs += (if (addCp == null) JAVA_CP else 
s"$JAVA_CP$sep$addCp".replace(s"$sep$sep", sep))
         prbArgs += "org.apache.nlpcraft.NCStart"
         prbArgs += "-probe"
         prbArgs += (

Reply via email to