From a09d75f41d9627cefbf64e1cc067d534c7c83419 Mon Sep 17 00:00:00 2001 From: Arun Venmany Date: Mon, 11 Nov 2024 10:43:02 +0530 Subject: [PATCH] incorparating review comments Signed-off-by: Arun Venmany --- .../openliberty/tools/maven/applications/DeployMojoSupport.java | 2 -- .../openliberty/tools/maven/applications/UndeployAppMojo.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/DeployMojoSupport.java b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/DeployMojoSupport.java index 326cd9f88..78bb5a18d 100644 --- a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/DeployMojoSupport.java +++ b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/DeployMojoSupport.java @@ -309,8 +309,6 @@ protected void verifyAppStarted(String appFile) throws MojoExecutionException { String appName = appFile.substring(0, appFile.lastIndexOf('.')); if (getAppsDirectory().equals("apps")) { - File serverXML = new File(serverDirectory, "server.xml"); - try { Map libertyDirPropertyFiles = getLibertyDirectoryPropertyFiles(); CommonLogger logger = new CommonLogger(getLog()); diff --git a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/UndeployAppMojo.java b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/UndeployAppMojo.java index 1479ed381..161199e52 100644 --- a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/UndeployAppMojo.java +++ b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/applications/UndeployAppMojo.java @@ -131,8 +131,6 @@ protected void undeployApp(File file) throws MojoExecutionException { if (getAppsDirectory().equals("apps")) { try { - File serverXML = new File(serverDirectory.getCanonicalPath(), "server.xml"); - Map libertyDirPropertyFiles = getLibertyDirectoryPropertyFiles(); CommonLogger logger = new CommonLogger(getLog()); setLog(logger.getLog());