This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-198
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-198 by this push:
new 7d9534e Update NCCli.scala
7d9534e is described below
commit 7d9534e709cd97df1ffe4001da9e9617d0d68ae8
Author: Aaron Radzinski <[email protected]>
AuthorDate: Thu Dec 17 16:23:14 2020 -0800
Update NCCli.scala
---
.../org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 16 +++++++++++++---
1 file changed, 13 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 5481472..5b9bcc3 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
@@ -569,6 +569,19 @@ object NCCli extends App {
case None ⇒ Seq("-ea", "-Xms1024m")
}
+ if (mdls != null) {
+ if (hasExternalModels(mdls) && addCp == null)
+ throw new IllegalStateException(
+ s"Additional classpath is required when deploying your own
models. " +
+ s"Use ${c("--cp")} parameters to provide additional
classpath.")
+ }
+
+ if (mdls == null && addCp != null)
+ warn(s"Additional classpath (${c("--cp")}) but no models
(${c("--models")}).")
+
+ if (addCp != null)
+ checkClasspath(addCp)
+
checkFilePath(cfgPath)
val sep = System.getProperty("path.separator")
@@ -2248,9 +2261,6 @@ object NCCli extends App {
case None ⇒ ()
}
- if (state.accessToken.isDefined)
- logln(s"Server signed in with default '${c(DFLT_USER_EMAIL)}'
user.")
-
val parser = new DefaultParser()
parser.setEofOnUnclosedBracket(Bracket.CURLY, Bracket.ROUND,
Bracket.SQUARE)