You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/07/10 05:21:52 UTC

[maven-war-plugin] branch MWAR-433 updated: [MWAR-433] use system separator char

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch MWAR-433
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git


The following commit(s) were added to refs/heads/MWAR-433 by this push:
     new a17b49e  [MWAR-433] use system separator char
a17b49e is described below

commit a17b49ea1b81d962298a30f5135e39dffa853492
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Fri Jul 10 07:21:44 2020 +0200

    [MWAR-433] use system separator char
---
 src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java | 4 ++++
 1 file changed, 4 insertions(+)

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 bb9e7d6..0bded3c 100644
--- a/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
@@ -648,6 +648,10 @@ public abstract class AbstractWarMojo
                 outdatedResources = new ArrayList<>();
                 try
                 {
+                    if ( '\\' == File.separatorChar )
+                    {
+                        outdatedCheckPath = outdatedCheckPath.replace( '/', '\\' );
+                    }
                     Files.walkFileTree( webappDirectory.toPath(), new SimpleFileVisitor<Path>()
                     {
                         @Override