From 33f99faa9b4dfe7fec6025d1e7376ceca47c5d85 Mon Sep 17 00:00:00 2001 From: Evie Lau Date: Thu, 6 Jul 2023 10:01:52 -0500 Subject: [PATCH] Create only applicationMonitor, move to configDropins/overrides --- .../config/ApplicationMonitorConfigXmlDocument.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/io/openliberty/tools/common/plugins/config/ApplicationMonitorConfigXmlDocument.java b/src/main/java/io/openliberty/tools/common/plugins/config/ApplicationMonitorConfigXmlDocument.java index 2bcca97b..281d0f56 100644 --- a/src/main/java/io/openliberty/tools/common/plugins/config/ApplicationMonitorConfigXmlDocument.java +++ b/src/main/java/io/openliberty/tools/common/plugins/config/ApplicationMonitorConfigXmlDocument.java @@ -37,11 +37,6 @@ public ApplicationMonitorConfigXmlDocument() { } public void createAppMonitorElement() { - Element varElement = doc.createElement("variable"); - varElement.setAttribute("name", "io.openliberty.tools.update.trigger"); - varElement.setAttribute("defaultValue", "polled"); - doc.getDocumentElement().appendChild(varElement); - Element appMonitor = doc.createElement("applicationMonitor"); appMonitor.setAttribute("updateTrigger", "${io.openliberty.tools.update.trigger}"); doc.getDocumentElement().appendChild(appMonitor); @@ -56,7 +51,7 @@ public void writeAppMonitorConfigXmlDocument(File serverDirectory) throws IOExce } public static File getAppMonitorConfigXmlFile(File serverDirectory) { - File f = new File(serverDirectory, "configDropins/defaults/" + APPLICATION_CONFIG_XML_FILENAME); + File f = new File(serverDirectory, "configDropins/overrides/" + APPLICATION_CONFIG_XML_FILENAME); return f; } }