Skip to content

Commit

Permalink
Create only applicationMonitor, move to configDropins/overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-lau committed Jul 6, 2023
1 parent 948887b commit 33f99fa
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
}

0 comments on commit 33f99fa

Please sign in to comment.