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/08 06:06:44 UTC

[maven-war-plugin] branch MWAR-433 updated: [MWAR-433] only check outdated for WEB-INF content

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 f35ae62  [MWAR-433] only check outdated for WEB-INF content
f35ae62 is described below

commit f35ae62c32ec7a549ceb76118fea3daad5ff846d
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Wed Jul 8 08:06:35 2020 +0200

    [MWAR-433] only check outdated for WEB-INF content
---
 src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 175d42b..b32d6cf 100644
--- a/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/war/AbstractWarMojo.java
@@ -649,7 +649,11 @@ public abstract class AbstractWarMojo
                             if ( file.toFile().lastModified() < session.getStartTime().getTime() )
                             {
                                 // resource older than session build start
-                                outdatedResources.add( webappDirectory.toPath().relativize( file ).toString() );
+                                String path = webappDirectory.toPath().relativize( file ).toString();
+                                if ( path.startsWith( WEB_INF ) )
+                                {
+                                    outdatedResources.add( path );
+                                }
                             }
                             return super.visitFile( file, attrs );
                         }