You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/09/16 18:09:20 UTC

[incubator-nlpcraft] branch master updated: Fix for NLPCRAFT-448

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 fbb64bc  Fix for NLPCRAFT-448
fbb64bc is described below

commit fbb64bc878c9e16dda3d415e0b139d1b21d84d34
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Thu Sep 16 11:08:53 2021 -0700

    Fix for NLPCRAFT-448
---
 nlpcraft-examples/minecraft-mod/build.gradle                          | 4 ++--
 nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml         | 4 ++--
 nlpcraft-examples/minecraft/src/main/resources/probe.conf             | 2 +-
 .../apache/nlpcraft/examples/minecraft/NCModelValidationSpec.scala    | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/nlpcraft-examples/minecraft-mod/build.gradle b/nlpcraft-examples/minecraft-mod/build.gradle
index c6973e4..b759058 100644
--- a/nlpcraft-examples/minecraft-mod/build.gradle
+++ b/nlpcraft-examples/minecraft-mod/build.gradle
@@ -74,14 +74,14 @@ jar {
 task dumpBlocks(type: JavaExec) {
     description = 'Dumps game file objects. Supports 2 types: items and blocks'
     classpath sourceSets.main.runtimeClasspath
-    main = "org.apache.nlpcraft.example.minecraft.utils.NCMinecraftFilesDump"
+    main = "org.apache.nlpcraft.examples.minecraft.utils.NCMinecraftFilesDump"
     args "block", minecraftVersion
 }
 
 task dumpItems(type: JavaExec) {
     description = 'Dumps game file objects. Supports 2 types: items and blocks'
     classpath sourceSets.main.runtimeClasspath
-    main = "org.apache.nlpcraft.example.minecraft.utils.NCMinecraftFilesDump"
+    main = "org.apache.nlpcraft.examples.minecraft.utils.NCMinecraftFilesDump"
     args "block", minecraftVersion
 }
 
diff --git a/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml b/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
index 9cffd47..f786031 100644
--- a/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
+++ b/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
@@ -35,11 +35,11 @@ elements:
   - id: mc:item
     metadata:
       mc:type: item
-    valueLoader: org.apache.nlpcraft.example.minecraft.MinecraftValueLoader
+    valueLoader: org.apache.nlpcraft.examples.minecraft.MinecraftValueLoader
   - id: mc:block
     metadata:
       mc:type: block
-    valueLoader: org.apache.nlpcraft.example.minecraft.MinecraftValueLoader
+    valueLoader: org.apache.nlpcraft.examples.minecraft.MinecraftValueLoader
 
   # Weather intent
   - id: weather:action
diff --git a/nlpcraft-examples/minecraft/src/main/resources/probe.conf b/nlpcraft-examples/minecraft/src/main/resources/probe.conf
index 5f8bb7e..5c5e0e4 100644
--- a/nlpcraft-examples/minecraft/src/main/resources/probe.conf
+++ b/nlpcraft-examples/minecraft/src/main/resources/probe.conf
@@ -106,7 +106,7 @@ nlpcraft {
         # Note that following models require 'google' on the server side.
         # See https://nlpcraft.apache.org/integrations.html#nlp for more details
         # on how to configure 3rd party token providers:
-        models = org.apache.nlpcraft.example.minecraft.MinecraftModel
+        models = org.apache.nlpcraft.examples.minecraft.MinecraftModel
 
         # Specify class names for probe life cycle components.
         # Each class should extend 'NCProbeLifecycle' interface and provide a no-arg constructor.
diff --git a/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/examples/minecraft/NCModelValidationSpec.scala b/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/examples/minecraft/NCModelValidationSpec.scala
index ec9fd03..96767f4 100644
--- a/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/examples/minecraft/NCModelValidationSpec.scala
+++ b/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/examples/minecraft/NCModelValidationSpec.scala
@@ -27,7 +27,7 @@ class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.
-        System.setProperty("NLPCRAFT_TEST_MODELS", "org.apache.nlpcraft.example.minecraft.MinecraftModel")
+        System.setProperty("NLPCRAFT_TEST_MODELS", "org.apache.nlpcraft.examples.minecraft.MinecraftModel")
 
         // Start model auto-validator.
         Assertions.assertTrue(NCTestAutoModelValidator.isValid(),"See error logs above.")