This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch s
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git
The following commit(s) were added to refs/heads/s by this push:
new 865b70e avoid string concatenation
865b70e is described below
commit 865b70e9151addf497731ca3d6a6d900149ef5f5
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Mon Nov 24 05:41:07 2025 -0600
avoid string concatenation
---
src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
b/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
index 9fc4c45..4a7930f 100644
--- a/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
@@ -415,12 +415,12 @@ public abstract class AbstractWarMojo extends
AbstractMojo {
// if webXML is specified, omit the one in the source directory
if (webXml != null && StringUtils.isNotEmpty(webXml.getName())) {
- excludeList.add("**/" + "WEB-INF" + "/web.xml");
+ excludeList.add("**/WEB-INF/web.xml");
}
// if contextXML is specified, omit the one in the source directory
if (containerConfigXML != null &&
StringUtils.isNotEmpty(containerConfigXML.getName())) {
- excludeList.add("**/" + "META-INF" + "/" +
containerConfigXML.getName());
+ excludeList.add("**/META-INF/" + containerConfigXML.getName());
}
return excludeList.toArray(new String[excludeList.size()]);