From f58af85631edbd7e4cf9a757205e03d65bb268bd Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 2 Jul 2015 23:37:19 +0200 Subject: [PATCH] Fix WatcherF to work due to the recent upstream changes. Original commit: elastic/x-pack-elasticsearch@cb91fd9e9f4ee4e43f44c19a5ae4e5c940e3f5ff --- src/test/java/org/elasticsearch/watcher/WatcherF.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/watcher/WatcherF.java b/src/test/java/org/elasticsearch/watcher/WatcherF.java index 0fbe3e36e44..752084da4c0 100644 --- a/src/test/java/org/elasticsearch/watcher/WatcherF.java +++ b/src/test/java/org/elasticsearch/watcher/WatcherF.java @@ -14,14 +14,15 @@ import org.elasticsearch.license.plugin.LicensePlugin; * * During startup an error will be printed that the config directory can't be found, to fix this: * 1) Add a config directly to the top level project directory - * 2) or set `-Des.path.conf=` to a location where there is a config directory on your machine. + * 2) or set `-Des.path.home=` to a location where there is a config directory on your machine. */ public class WatcherF { public static void main(String[] args) { System.setProperty("es.http.cors.enabled", "true"); - System.setProperty("es.script.disable_dynamic", "false"); + System.setProperty("es.script.inline", "on"); System.setProperty("es.shield.enabled", "false"); + System.setProperty("es.security.manager.enabled", "false"); System.setProperty("es.plugins.load_classpath_plugins", "false"); System.setProperty("es.plugin.types", WatcherPlugin.class.getName() + "," + LicensePlugin.class.getName()); System.setProperty("es.cluster.name", WatcherF.class.getSimpleName());