diff --git a/.gitignore b/.gitignore
index 47284c32..d42d3cdf 100755
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
/screenlog.0*
/hal.conf
/hal.db*
-/build/
+build
/lib/Zutil.jar
diff --git a/Hal.iml b/Hal.iml
index 20da5823..feac8bfb 100755
--- a/Hal.iml
+++ b/Hal.iml
@@ -7,7 +7,10 @@
+
+
+
diff --git a/Jenkinsfile b/Jenkinsfile
index f6de5243..25b9a4d2 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -10,12 +10,12 @@ node {
stage('Build') {
sh 'ant clean'
- sh 'ant build'
+ sh 'ant build-all'
}
stage('Test') {
try {
- sh 'ant test'
+ sh 'ant test-all'
} finally {
step([$class: 'JUnitResultArchiver', testResults: 'build/reports/*.xml'])
}
@@ -23,7 +23,7 @@ node {
stage('Package') {
- sh 'ant package'
+ sh 'ant package-all'
archiveArtifacts artifacts: 'build/release/**', fingerprint: true
// Tag artifact
diff --git a/build.xml b/build.xml
index f3052714..c553a0e5 100755
--- a/build.xml
+++ b/build.xml
@@ -59,6 +59,9 @@
+
+
+
@@ -72,16 +75,28 @@
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
@@ -101,6 +116,12 @@
dest="${libDir}" verbose="true" usetimestamp="true"/>
+
+
+
+
+
+
@@ -113,6 +134,9 @@
+
+
+
@@ -120,15 +144,32 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/tellstick/build.xml b/plugins/tellstick/build.xml
new file mode 100755
index 00000000..1307aada
--- /dev/null
+++ b/plugins/tellstick/build.xml
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/se/hal/plugin/tellstick/TellstickDevice.java b/plugins/tellstick/src/se/hal/plugin/tellstick/TellstickDevice.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/TellstickDevice.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/TellstickDevice.java
diff --git a/src/se/hal/plugin/tellstick/TellstickDeviceGroup.java b/plugins/tellstick/src/se/hal/plugin/tellstick/TellstickDeviceGroup.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/TellstickDeviceGroup.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/TellstickDeviceGroup.java
diff --git a/src/se/hal/plugin/tellstick/TellstickParser.java b/plugins/tellstick/src/se/hal/plugin/tellstick/TellstickParser.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/TellstickParser.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/TellstickParser.java
diff --git a/src/se/hal/plugin/tellstick/TellstickProtocol.java b/plugins/tellstick/src/se/hal/plugin/tellstick/TellstickProtocol.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/TellstickProtocol.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/TellstickProtocol.java
diff --git a/src/se/hal/plugin/tellstick/TellstickSerialComm.java b/plugins/tellstick/src/se/hal/plugin/tellstick/TellstickSerialComm.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/TellstickSerialComm.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/TellstickSerialComm.java
diff --git a/src/se/hal/plugin/tellstick/cmd/TellstickCmd.java b/plugins/tellstick/src/se/hal/plugin/tellstick/cmd/TellstickCmd.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/cmd/TellstickCmd.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/cmd/TellstickCmd.java
diff --git a/src/se/hal/plugin/tellstick/cmd/TellstickCmdExtendedSend.java b/plugins/tellstick/src/se/hal/plugin/tellstick/cmd/TellstickCmdExtendedSend.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/cmd/TellstickCmdExtendedSend.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/cmd/TellstickCmdExtendedSend.java
diff --git a/src/se/hal/plugin/tellstick/cmd/TellstickCmdSend.java b/plugins/tellstick/src/se/hal/plugin/tellstick/cmd/TellstickCmdSend.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/cmd/TellstickCmdSend.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/cmd/TellstickCmdSend.java
diff --git a/src/se/hal/plugin/tellstick/device/NexaSelfLearning.java b/plugins/tellstick/src/se/hal/plugin/tellstick/device/NexaSelfLearning.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/device/NexaSelfLearning.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/device/NexaSelfLearning.java
diff --git a/src/se/hal/plugin/tellstick/device/NexaSelfLearningDimmer.java b/plugins/tellstick/src/se/hal/plugin/tellstick/device/NexaSelfLearningDimmer.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/device/NexaSelfLearningDimmer.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/device/NexaSelfLearningDimmer.java
diff --git a/src/se/hal/plugin/tellstick/device/Oregon0x1A2D.java b/plugins/tellstick/src/se/hal/plugin/tellstick/device/Oregon0x1A2D.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/device/Oregon0x1A2D.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/device/Oregon0x1A2D.java
diff --git a/src/se/hal/plugin/tellstick/plugin.json b/plugins/tellstick/src/se/hal/plugin/tellstick/plugin.json
similarity index 100%
rename from src/se/hal/plugin/tellstick/plugin.json
rename to plugins/tellstick/src/se/hal/plugin/tellstick/plugin.json
diff --git a/src/se/hal/plugin/tellstick/protocol/NexaSelfLearningProtocol.java b/plugins/tellstick/src/se/hal/plugin/tellstick/protocol/NexaSelfLearningProtocol.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/protocol/NexaSelfLearningProtocol.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/protocol/NexaSelfLearningProtocol.java
diff --git a/src/se/hal/plugin/tellstick/protocol/Oregon0x1A2DProtocol.java b/plugins/tellstick/src/se/hal/plugin/tellstick/protocol/Oregon0x1A2DProtocol.java
similarity index 100%
rename from src/se/hal/plugin/tellstick/protocol/Oregon0x1A2DProtocol.java
rename to plugins/tellstick/src/se/hal/plugin/tellstick/protocol/Oregon0x1A2DProtocol.java
diff --git a/test/se/hal/plugin/tellstick/TelstickSerialCommEventTest.java b/plugins/tellstick/test/se/hal/plugin/tellstick/TelstickSerialCommEventTest.java
similarity index 100%
rename from test/se/hal/plugin/tellstick/TelstickSerialCommEventTest.java
rename to plugins/tellstick/test/se/hal/plugin/tellstick/TelstickSerialCommEventTest.java
diff --git a/test/se/hal/plugin/tellstick/TelstickSerialCommNexaOnOffTest.java b/plugins/tellstick/test/se/hal/plugin/tellstick/TelstickSerialCommNexaOnOffTest.java
similarity index 100%
rename from test/se/hal/plugin/tellstick/TelstickSerialCommNexaOnOffTest.java
rename to plugins/tellstick/test/se/hal/plugin/tellstick/TelstickSerialCommNexaOnOffTest.java
diff --git a/test/se/hal/plugin/tellstick/TelstickSerialCommSensorTest.java b/plugins/tellstick/test/se/hal/plugin/tellstick/TelstickSerialCommSensorTest.java
similarity index 100%
rename from test/se/hal/plugin/tellstick/TelstickSerialCommSensorTest.java
rename to plugins/tellstick/test/se/hal/plugin/tellstick/TelstickSerialCommSensorTest.java
diff --git a/test/se/hal/plugin/tellstick/protocol/NexaSelfLearningTest.java b/plugins/tellstick/test/se/hal/plugin/tellstick/protocol/NexaSelfLearningTest.java
similarity index 100%
rename from test/se/hal/plugin/tellstick/protocol/NexaSelfLearningTest.java
rename to plugins/tellstick/test/se/hal/plugin/tellstick/protocol/NexaSelfLearningTest.java
diff --git a/plugins/zwave/build.xml b/plugins/zwave/build.xml
index ff374fd8..acae58a1 100755
--- a/plugins/zwave/build.xml
+++ b/plugins/zwave/build.xml
@@ -34,6 +34,10 @@
+
+
+
+
diff --git a/test/se/hal/daemon/SensorDataAggregationDeamonTest.java b/test/se/hal/daemon/SensorDataAggregationDeamonTest.java
old mode 100644
new mode 100755
index 7dc5eb06..216a23c9
--- a/test/se/hal/daemon/SensorDataAggregationDeamonTest.java
+++ b/test/se/hal/daemon/SensorDataAggregationDeamonTest.java
@@ -6,7 +6,7 @@ import org.junit.Before;
import org.junit.Test;
import se.hal.HalContext;
-import se.hal.plugin.tellstick.device.Oregon0x1A2D;
+import se.hal.plugin.netscan.NetworkDevice;
import se.hal.util.UTCTimeUtility;
import zutil.db.DBConnection;
import zutil.db.DBUpgradeHandler;
@@ -43,7 +43,7 @@ public class SensorDataAggregationDeamonTest {
System.out.println("Adding user to database");
db.exec("INSERT INTO user(id, external, username) VALUES(222, 0, 'test')"); //adding user
System.out.println("Adding sensor to database");
- db.exec("INSERT INTO sensor(id, user_id, external_id, type) VALUES(111, 222, 333, '"+Oregon0x1A2D.class.getName()+"')"); //adding sensor
+ db.exec("INSERT INTO sensor(id, user_id, external_id, type) VALUES(111, 222, 333, '"+NetworkDevice.class.getName()+"')"); //adding sensor
System.out.println("Generating raw data and saving it to the database...");
PreparedStatement stmt = db.getPreparedStatement("INSERT INTO sensor_data_raw (timestamp, sensor_id, data) VALUES(?, ?, ?)");
try{
@@ -77,7 +77,7 @@ public class SensorDataAggregationDeamonTest {
//TODO: verify the aggregation
- System.out.println("Finnished testing raw data aggregation");
+ System.out.println("Finished testing raw data aggregation");
}