Skip to content

Commit

Permalink
incorparating review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Venmany <[email protected]>
  • Loading branch information
arunvenmany-ibm committed Sep 11, 2024
1 parent 90b7632 commit a75a5b0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ public class LooseEarApplication extends LooseApplication {
}
applicationXmlFile = new File(task.getProject().path.replace(":", "") + "/" + ear.getAppDirectory().getAsFile().get().getAbsolutePath() + "/META-INF/" + applicationName)
if (applicationXmlFile.exists()) {
config.addFile(applicationXmlFile, "/META-INF/application.xml");
config.addFile(applicationXmlFile, "/META-INF/application.xml")
}
}
if (applicationXmlFile == null || !applicationXmlFile.exists()) {
applicationXmlFile = new File(task.getDestinationDirectory().get().getAsFile().getParentFile().getAbsolutePath() + "/tmp/ear" + applicationName);
config.addFile(applicationXmlFile, "/META-INF/application.xml");
logger.warn("Could not get the application.xml file location from the EAR plugin because it is not configured. The file may not be added correctly to the application archive.")
config.addFile(applicationXmlFile, "/META-INF/application.xml")
}
}

Expand Down

0 comments on commit a75a5b0

Please sign in to comment.