diff --git a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java index e7f201d988689..aed7847352314 100644 --- a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java +++ b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java @@ -33,7 +33,6 @@ import org.openhab.core.automation.module.script.ScriptExtensionManagerWrapper; import org.openhab.core.config.core.ConfigurableService; import org.openhab.core.service.WatchService; -import org.openhab.core.service.WatchServiceFactory; import org.osgi.framework.Constants; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; @@ -75,7 +74,8 @@ private static Map.Entry mapGlobalPresets(Map.Entry config) { + public JRubyScriptEngineFactory(@Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService, + Map config) { jrubyDependencyTracker = new JRubyDependencyTracker(watchService, this); modified(config); } diff --git a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyGemWatchService.java b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyGemWatchService.java index 83b2ec87805e4..755c4701f52e9 100644 --- a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyGemWatchService.java +++ b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyGemWatchService.java @@ -44,7 +44,7 @@ public void activate() { watchService.registerListener(this, path); } - @Override + @Override public void deactivate() { watchService.unregisterListener(this); } diff --git a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyLibWatchService.java b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyLibWatchService.java index f02a256c377aa..f7d2127489909 100644 --- a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyLibWatchService.java +++ b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyLibWatchService.java @@ -11,6 +11,7 @@ * SPDX-License-Identifier: EPL-2.0 */ package org.openhab.automation.jrubyscripting.internal.watch; + import static org.openhab.core.service.WatchService.Kind.*; import java.io.File; @@ -52,8 +53,8 @@ public void deactivate() { @Override public void processWatchEvent(Kind kind, Path path) { File file = path.toFile(); - if (!file.isHidden() && (kind.equals(DELETE) - || (file.canRead() && (kind.equals(CREATE) || kind.equals(MODIFY))))) { + if (!file.isHidden() + && (kind.equals(DELETE) || (file.canRead() && (kind.equals(CREATE) || kind.equals(MODIFY))))) { dependencyTracker.dependencyChanged(file.getPath()); } } diff --git a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyScriptFileWatcher.java b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyScriptFileWatcher.java index 8083801453244..cd149794a6ad2 100644 --- a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyScriptFileWatcher.java +++ b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyScriptFileWatcher.java @@ -14,10 +14,7 @@ import java.io.File; import java.nio.file.Path; -import java.nio.file.WatchEvent; -import java.util.Objects; -import org.eclipse.jdt.annotation.Nullable; import org.openhab.automation.jrubyscripting.internal.JRubyScriptEngineFactory; import org.openhab.core.automation.module.script.ScriptDependencyTracker; import org.openhab.core.automation.module.script.ScriptEngineFactory; @@ -49,7 +46,8 @@ public class JRubyScriptFileWatcher extends AbstractScriptFileWatcher { @Activate public JRubyScriptFileWatcher(final @Reference ScriptEngineManager manager, - final @Reference ReadyService readyService, final @Reference(target = "(" + Constants.SERVICE_PID + final @Reference ReadyService readyService, + final @Reference(target = "(" + Constants.SERVICE_PID + "=org.openhab.automation.jrubyscripting)") ScriptEngineFactory scriptEngineFactory, final @Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService) { super(manager, readyService, watchService, FILE_DIRECTORY, true); @@ -67,10 +65,10 @@ protected void importFile(ScriptFileReference ref) { @Override public void processWatchEvent(WatchService.Kind kind, Path path) { - if (!isIgnored(path.toString())) { - super.processWatchEvent(kind, path); - } - } + if (!isIgnored(path.toString())) { + super.processWatchEvent(kind, path); + } + } private boolean isIgnored(String path) { return scriptEngineFactory.isFileInGemHome(path) || scriptEngineFactory.isFileInLoadPath(path); diff --git a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyWatchService.java b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyWatchService.java index daef6ecaf45b0..f46a07278d96f 100644 --- a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyWatchService.java +++ b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/watch/JRubyWatchService.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2021-2022 Contributors to the SmartHome/J project + * Copyright (c) 2010-2022 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. @@ -19,7 +19,8 @@ * * @author Jan N. Klug - Initial contribution */ -@NonNullByDefault public interface JRubyWatchService { +@NonNullByDefault +public interface JRubyWatchService { /** * start watching diff --git a/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java b/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java index 806ad1b4d9eb1..8da2cca461f9b 100644 --- a/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java +++ b/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java @@ -13,12 +13,9 @@ package org.openhab.automation.jsscripting.internal.fs.watch; import java.io.File; -import java.io.IOException; import java.nio.file.Files; -import java.nio.file.Path; import org.eclipse.jdt.annotation.NonNullByDefault; -import org.openhab.core.OpenHAB; import org.openhab.core.automation.module.script.ScriptDependencyTracker; import org.openhab.core.automation.module.script.rulesupport.loader.AbstractScriptDependencyTracker; import org.openhab.core.service.WatchService; @@ -43,27 +40,15 @@ public class JSDependencyTracker extends AbstractScriptDependencyTracker { private final Logger logger = LoggerFactory.getLogger(JSDependencyTracker.class); - public static final String LIB_PATH = String.join(File.separator, "automation", "js", - "node_modules"); + public static final String LIB_PATH = String.join(File.separator, "automation", "js", "node_modules"); + @Activate public JSDependencyTracker(@Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService) { super(watchService, LIB_PATH); - } - @Activate - public void activate() { - Path directory = Path.of(OpenHAB.getConfigFolder(), LIB_PATH); - if (Files.isRegularFile(directory)) { - logger.warn("Trying to watch directory '{}', however it is a file",directory); - } else { - try { - Files.createDirectories(directory); - } catch (IOException e) { - logger.warn("Failed to create '{}': {}", directory, e.getMessage()); - } + if (Files.isRegularFile(this.libraryPath)) { + logger.warn("Trying to watch directory '{}', however it is a file", this.libraryPath); } - - super.activate(); } @Deactivate diff --git a/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSScriptFileWatcher.java b/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSScriptFileWatcher.java index 3c8f41f7ba1c1..550be44a7824f 100644 --- a/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSScriptFileWatcher.java +++ b/bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSScriptFileWatcher.java @@ -42,19 +42,19 @@ public class JSScriptFileWatcher extends AbstractScriptFileWatcher { private final String ignorePath; @Activate - public JSScriptFileWatcher(final @Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService, final @Reference ScriptEngineManager manager, - final @Reference ReadyService readyService) { + public JSScriptFileWatcher(final @Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService, + final @Reference ScriptEngineManager manager, final @Reference ReadyService readyService) { super(manager, readyService, watchService, FILE_DIRECTORY, false); ignorePath = FILE_DIRECTORY + File.separator + "node_modules"; } @Override - public void processWatchEvent( WatchService.Kind kind, Path path) { - if (!path.startsWith(ignorePath)) { - super.processWatchEvent(kind, path); - } - } + public void processWatchEvent(WatchService.Kind kind, Path path) { + if (!path.startsWith(ignorePath)) { + super.processWatchEvent(kind, path); + } + } @Override protected boolean createAndLoad(ScriptFileReference ref) { diff --git a/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/ExecWhitelistWatchService.java b/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/ExecWhitelistWatchService.java index 0bdef3bf12cf8..90788efdd39b0 100644 --- a/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/ExecWhitelistWatchService.java +++ b/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/ExecWhitelistWatchService.java @@ -14,7 +14,6 @@ import static java.nio.file.StandardWatchEventKinds.*; -import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; @@ -46,7 +45,8 @@ public class ExecWhitelistWatchService implements WatchService.WatchEventListene private final WatchService watchService; @Activate - public ExecWhitelistWatchService(final @Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService) { + public ExecWhitelistWatchService( + final @Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService) { this.watchService = watchService; watchService.registerListener(this, COMMAND_WHITELIST_FILE, false); @@ -63,7 +63,7 @@ public void deactivate() { public void processWatchEvent(WatchService.Kind kind, Path path) { if (path.endsWith(COMMAND_WHITELIST_FILE)) { commandWhitelist.clear(); - try (Stream lines = Files.lines(path) ){ + try (Stream lines = Files.lines(path)) { lines.filter(line -> !line.trim().startsWith("#")).forEach(commandWhitelist::add); logger.debug("Updated command whitelist: {}", commandWhitelist); } catch (IOException e) { diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoDatabaseWatchService.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoDatabaseWatchService.java index 408d05369bdfc..369b8ebb07bdb 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoDatabaseWatchService.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoDatabaseWatchService.java @@ -87,12 +87,12 @@ public void deactivate() { @Override public void processWatchEvent(WatchService.Kind kind, Path path) { - final Path p = path.getFileName(); - if (p != null && p.toString().endsWith(DATABASE_FILES)) { - logger.debug("Local Databases file {} changed. Refreshing device database.", p.getFileName()); - populateDatabase(); - } - } + final Path p = path.getFileName(); + if (p != null && p.toString().endsWith(DATABASE_FILES)) { + logger.debug("Local Databases file {} changed. Refreshing device database.", p.getFileName()); + populateDatabase(); + } + } /** * Return the database file URL for a given modelId diff --git a/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationWhitelistWatchService.java b/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationWhitelistWatchService.java index 4e6e518e27a7d..248a3c3eda175 100644 --- a/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationWhitelistWatchService.java +++ b/bundles/org.openhab.transform.exec/src/main/java/org/openhab/transform/exec/internal/ExecTransformationWhitelistWatchService.java @@ -43,7 +43,8 @@ public class ExecTransformationWhitelistWatchService implements WatchService.Wat private final WatchService watchService; @Activate - public ExecTransformationWhitelistWatchService(final @Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService) { + public ExecTransformationWhitelistWatchService( + final @Reference(target = WatchService.CONFIG_WATCHER_FILTER) WatchService watchService) { this.watchService = watchService; watchService.registerListener(this, COMMAND_WHITELIST_FILE); @@ -60,7 +61,7 @@ public void deactivate() { public void processWatchEvent(WatchService.Kind kind, Path path) { if (path.endsWith(COMMAND_WHITELIST_FILE)) { commandWhitelist.clear(); - try (Stream lines = Files.lines(path) ){ + try (Stream lines = Files.lines(path)) { lines.filter(line -> !line.trim().startsWith("#")).forEach(commandWhitelist::add); logger.debug("Updated command whitelist: {}", commandWhitelist); } catch (IOException e) { diff --git a/itests/org.openhab.binding.astro.tests/itest.bndrun b/itests/org.openhab.binding.astro.tests/itest.bndrun index a3a0b1852c7b3..febbbdc2e0664 100644 --- a/itests/org.openhab.binding.astro.tests/itest.bndrun +++ b/itests/org.openhab.binding.astro.tests/itest.bndrun @@ -50,4 +50,6 @@ Fragment-Host: org.openhab.binding.astro org.openhab.core.io.console;version='[4.0.0,4.0.1)',\ org.openhab.core.storage.json;version='[4.0.0,4.0.1)',\ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.avmfritz.tests/itest.bndrun b/itests/org.openhab.binding.avmfritz.tests/itest.bndrun index 193b10d346eb0..6eec35788af0a 100644 --- a/itests/org.openhab.binding.avmfritz.tests/itest.bndrun +++ b/itests/org.openhab.binding.avmfritz.tests/itest.bndrun @@ -77,4 +77,6 @@ Fragment-Host: org.openhab.binding.avmfritz org.openhab.core.test;version='[4.0.0,4.0.1)',\ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ com.google.gson;version='[2.9.1,2.9.2)',\ - org.objectweb.asm;version='[9.4.0,9.4.1)' + org.objectweb.asm;version='[9.4.0,9.4.1)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.feed.tests/itest.bndrun b/itests/org.openhab.binding.feed.tests/itest.bndrun index 0c321c2ff0fdb..3c1b602e4f046 100644 --- a/itests/org.openhab.binding.feed.tests/itest.bndrun +++ b/itests/org.openhab.binding.feed.tests/itest.bndrun @@ -77,4 +77,6 @@ Fragment-Host: org.openhab.binding.feed org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ com.google.gson;version='[2.9.1,2.9.2)',\ - org.objectweb.asm;version='[9.4.0,9.4.1)' + org.objectweb.asm;version='[9.4.0,9.4.1)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.hue.tests/itest.bndrun b/itests/org.openhab.binding.hue.tests/itest.bndrun index 2779dc1af5f8f..5f8c8cc226fff 100644 --- a/itests/org.openhab.binding.hue.tests/itest.bndrun +++ b/itests/org.openhab.binding.hue.tests/itest.bndrun @@ -81,4 +81,6 @@ Fragment-Host: org.openhab.binding.hue org.openhab.core.test;version='[4.0.0,4.0.1)',\ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.max.tests/itest.bndrun b/itests/org.openhab.binding.max.tests/itest.bndrun index 4040a0d70a41c..5d655979c8e81 100644 --- a/itests/org.openhab.binding.max.tests/itest.bndrun +++ b/itests/org.openhab.binding.max.tests/itest.bndrun @@ -68,4 +68,6 @@ Fragment-Host: org.openhab.binding.max org.openhab.core.test;version='[4.0.0,4.0.1)',\ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.mielecloud.tests/itest.bndrun b/itests/org.openhab.binding.mielecloud.tests/itest.bndrun index 0bebcf635a7ff..28411c616499b 100644 --- a/itests/org.openhab.binding.mielecloud.tests/itest.bndrun +++ b/itests/org.openhab.binding.mielecloud.tests/itest.bndrun @@ -87,4 +87,6 @@ Fragment-Host: org.openhab.binding.mielecloud org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ com.google.gson;version='[2.9.1,2.9.2)',\ - org.objectweb.asm;version='[9.4.0,9.4.1)' + org.objectweb.asm;version='[9.4.0,9.4.1)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.modbus.tests/itest.bndrun b/itests/org.openhab.binding.modbus.tests/itest.bndrun index 4d8f67dcfdfe1..5db910eab2fb8 100644 --- a/itests/org.openhab.binding.modbus.tests/itest.bndrun +++ b/itests/org.openhab.binding.modbus.tests/itest.bndrun @@ -77,4 +77,6 @@ Fragment-Host: org.openhab.binding.modbus org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ org.openhab.core.transform;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.mqtt.homeassistant.tests/itest.bndrun b/itests/org.openhab.binding.mqtt.homeassistant.tests/itest.bndrun index ad6a4ce2f57ee..3767e8da80153 100644 --- a/itests/org.openhab.binding.mqtt.homeassistant.tests/itest.bndrun +++ b/itests/org.openhab.binding.mqtt.homeassistant.tests/itest.bndrun @@ -112,4 +112,6 @@ Import-Package: \ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ org.openhab.core.transform;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.mqtt.homie.tests/itest.bndrun b/itests/org.openhab.binding.mqtt.homie.tests/itest.bndrun index b1bedb28eddce..364d3e4c313dd 100644 --- a/itests/org.openhab.binding.mqtt.homie.tests/itest.bndrun +++ b/itests/org.openhab.binding.mqtt.homie.tests/itest.bndrun @@ -112,5 +112,7 @@ Import-Package: \ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ org.openhab.core.transform;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.nest.tests/itest.bndrun b/itests/org.openhab.binding.nest.tests/itest.bndrun index fbb5198e46317..d58fdc6ff3ddf 100644 --- a/itests/org.openhab.binding.nest.tests/itest.bndrun +++ b/itests/org.openhab.binding.nest.tests/itest.bndrun @@ -107,4 +107,6 @@ Fragment-Host: org.openhab.binding.nest org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ com.google.gson;version='[2.9.1,2.9.2)',\ - org.objectweb.asm;version='[9.4.0,9.4.1)' + org.objectweb.asm;version='[9.4.0,9.4.1)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.ntp.tests/itest.bndrun b/itests/org.openhab.binding.ntp.tests/itest.bndrun index 94ba485b92389..9b5386d103ce3 100644 --- a/itests/org.openhab.binding.ntp.tests/itest.bndrun +++ b/itests/org.openhab.binding.ntp.tests/itest.bndrun @@ -72,4 +72,6 @@ Fragment-Host: org.openhab.binding.ntp org.openhab.core.test;version='[4.0.0,4.0.1)',\ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.systeminfo.tests/itest.bndrun b/itests/org.openhab.binding.systeminfo.tests/itest.bndrun index 31d5f06b98bab..0fbf758146c69 100644 --- a/itests/org.openhab.binding.systeminfo.tests/itest.bndrun +++ b/itests/org.openhab.binding.systeminfo.tests/itest.bndrun @@ -76,4 +76,5 @@ Fragment-Host: org.openhab.binding.systeminfo org.openhab.core.test;version='[4.0.0,4.0.1)',\ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.tradfri.tests/itest.bndrun b/itests/org.openhab.binding.tradfri.tests/itest.bndrun index 0247dd6f65776..7990655ab16fd 100644 --- a/itests/org.openhab.binding.tradfri.tests/itest.bndrun +++ b/itests/org.openhab.binding.tradfri.tests/itest.bndrun @@ -79,4 +79,6 @@ Fragment-Host: org.openhab.binding.tradfri org.openhab.core.test;version='[4.0.0,4.0.1)',\ org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.binding.wemo.tests/itest.bndrun b/itests/org.openhab.binding.wemo.tests/itest.bndrun index dac768f530838..ae41c15cf7418 100644 --- a/itests/org.openhab.binding.wemo.tests/itest.bndrun +++ b/itests/org.openhab.binding.wemo.tests/itest.bndrun @@ -85,4 +85,6 @@ Fragment-Host: org.openhab.binding.wemo org.openhab.core.thing;version='[4.0.0,4.0.1)',\ org.openhab.core.thing.xml;version='[4.0.0,4.0.1)',\ com.google.gson;version='[2.9.1,2.9.2)',\ - org.objectweb.asm;version='[9.4.0,9.4.1)' + org.objectweb.asm;version='[9.4.0,9.4.1)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)' diff --git a/itests/org.openhab.persistence.mapdb.tests/itest.bndrun b/itests/org.openhab.persistence.mapdb.tests/itest.bndrun index 44c5e2183a253..43a026d302e45 100644 --- a/itests/org.openhab.persistence.mapdb.tests/itest.bndrun +++ b/itests/org.openhab.persistence.mapdb.tests/itest.bndrun @@ -59,4 +59,6 @@ Fragment-Host: org.openhab.persistence.mapdb org.openhab.core.test;version='[4.0.0,4.0.1)',\ org.openhab.persistence.mapdb;version='[4.0.0,4.0.1)',\ org.openhab.persistence.mapdb.tests;version='[4.0.0,4.0.1)',\ - com.google.gson;version='[2.9.1,2.9.2)' + com.google.gson;version='[2.9.1,2.9.2)',\ + com.sun.jna;version='[5.11.0,5.11.1)',\ + io.methvin.directory-watcher;version='[0.17.1,0.17.2)'