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 14de6e2  WIP.
14de6e2 is described below

commit 14de6e21286f14d4879dccb616b7ee28fe199f58
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Dec 11 18:18:26 2020 -0800

    WIP.
---
 bin/nlpcraft.sh                                                       | 4 ++++
 .../main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala    | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/bin/nlpcraft.sh b/bin/nlpcraft.sh
index 50759ba..dd647ed 100755
--- a/bin/nlpcraft.sh
+++ b/bin/nlpcraft.sh
@@ -34,6 +34,7 @@ readlinkf_posix() {
   [ -d "${target:-/}" ] && target="$target/"
 
   cd -P . 2>/dev/null || return 1
+
   while [ "$max_symlinks" -ge 0 ] && max_symlinks=$((max_symlinks - 1)); do
     if [ ! "$target" = "${target%/*}" ]; then
       case $target in
@@ -52,6 +53,7 @@ readlinkf_posix() {
     link=$(ls -dl -- "$target" 2>/dev/null) || break
     target=${link#*" $target -> "}
   done
+
   return 1
 }
 
@@ -154,6 +156,7 @@ fi
 
 # Build classpath.
 # NOTE: JARs from 'build' override JARs from 'dev'.
+shopt -s nullglob
 for file in "$DEV_JARS"/*-all-deps.jar
 do
     CP=$CP$SEP$file
@@ -162,6 +165,7 @@ for file in "$BUILD_JARS"/*-all-deps.jar
 do
     CP=$CP$SEP$file
 done
+shopt -u nullglob
 
 # Check Java version.
 checkJava
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 4bcd43a..351321a 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
@@ -1806,6 +1806,8 @@ object NCCli extends App {
 
         val srvPb = new ProcessBuilder(srvArgs.asJava)
 
+        println(srvPb.command()) // TODO
+
         srvPb.directory(new File(INSTALL_HOME))
         srvPb.redirectErrorStream(true)
 
@@ -2008,7 +2010,7 @@ object NCCli extends App {
 
         val prbPb = new ProcessBuilder(prbArgs.asJava)
 
-        println(prbPb.command())
+        println(prbPb.command()) // TODO
 
         if (mdls != null)
             prbPb.environment().put("CONFIG_FORCE_nlpcraft_probe_models", mdls)

Reply via email to