This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new c948d79 Fix for NLPCraft CLI 'test-model' command.
c948d79 is described below
commit c948d799c220cac9365559ffff01d56cadac28ac
Author: Aaron Radzinski <[email protected]>
AuthorDate: Sat Jan 9 10:45:15 2021 -0800
Fix for NLPCraft CLI 'test-model' command.
---
.../src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 ffe900b..b3d7d1c 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
@@ -699,7 +699,7 @@ object NCCli extends App {
}
if (mdls != null) {
- if (hasExternalModels(mdls) && addCp != 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.")