Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Extended project with submodule

Christian Bauer59ab18c7126d
diff --git a/blok61 b/blok61
index 7aebadbf5..129c87005 160000
--- a/blok61
+++ b/blok61
@@ -1 +1 @@
-Subproject commit 7aebadbf572c2b8727cf109cfc0eb726b4ce7f58
+Subproject commit 129c870057b59d6b701ed678c2533e749a32324e
diff --git a/manager/server/src/main/java/org/openremote/manager/server/agent/AgentService.java b/manager/server/src/main/java/org/openremote/manager/server/agent/AgentService.java
index c4f63c556..90476d78c 100644
--- a/manager/server/src/main/java/org/openremote/manager/server/agent/AgentService.java
+++ b/manager/server/src/main/java/org/openremote/manager/server/agent/AgentService.java
@@ -160,6 +160,8 @@ public class AgentService extends RouteBuilder implements ContainerService {
Map<String, List<ThingAttribute>> attributes) {
for (String protocolName : attributes.keySet()) {
for (Protocol protocol : protocols) {
+ if (protocol.getProtocolName() == null || protocol.getProtocolName().length() ==0)
+ throw new IllegalStateException("Protocol can't have empty name: " + protocol.getClass());
if (protocol.getProtocolName().equals(protocolName)) {
try {
protocol.linkAttributes(attributes.get(protocolName));
diff --git a/manager/test/src/test/groovy/org/openremote/test/ManagerContainerTrait.groovy b/manager/test/src/main/groovy/org/openremote/test/ManagerContainerTrait.groovy
similarity index 100%
rename from manager/test/src/test/groovy/org/openremote/test/ManagerContainerTrait.groovy
rename to manager/test/src/main/groovy/org/openremote/test/ManagerContainerTrait.groovy
diff --git a/settings.gradle b/settings.gradle
index 364ab383a..4ab09d3ac 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,21 +1,8 @@
rootProject.name = "openremote"
+// Include sub-projects dynamically, every directory with a build.gradle
String rootDir = new File('.').canonicalPath
-FileTree tree = fileTree(dir: '.', include: '**/build.gradle')
-
-tree
- .filter { it.parent != rootDir }
- .each {
- String projectName = it.parent.replace(rootDir, "").replace("\\", ":").replace("/", ":")
- include projectName
- }
-
-//include "postgresql",
-// "keycloak",
-// "shared",
-// "container",
-// "agent",
-// "manager:shared",
-// "manager:server",
-// "manager:client",
-// "manager:test"
\ No newline at end of file
+fileTree(dir: '.', include: '**/build.gradle').filter { it.parent != rootDir }.each {
+ String projectName = it.parent.replace(rootDir, "").replace("\\", ":").replace("/", ":")
+ include projectName
+}
\ No newline at end of file