You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2021/08/31 16:17:01 UTC
[tomee-patch-plugin] branch master updated: sourceExcludes didn't
work on Windows
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee-patch-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 4d6e16b sourceExcludes didn't work on Windows
new debf772 Merge pull request #4 from t-gergely/sourceExcludes
4d6e16b is described below
commit 4d6e16bb648b2cb089bfe065a1a24e33e649871c
Author: t-gergely <87...@users.noreply.github.com>
AuthorDate: Tue Aug 31 15:17:48 2021 +0200
sourceExcludes didn't work on Windows
---
.../src/main/java/org/apache/tomee/patch/plugin/PatchMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomee-patch-plugin/src/main/java/org/apache/tomee/patch/plugin/PatchMojo.java b/tomee-patch-plugin/src/main/java/org/apache/tomee/patch/plugin/PatchMojo.java
index 264eea7..4975a39 100644
--- a/tomee-patch-plugin/src/main/java/org/apache/tomee/patch/plugin/PatchMojo.java
+++ b/tomee-patch-plugin/src/main/java/org/apache/tomee/patch/plugin/PatchMojo.java
@@ -595,7 +595,7 @@ public class PatchMojo extends AbstractMojo {
final String path = file.getAbsolutePath().substring(root.getAbsolutePath().length() + 1);
for (final String exclude : sourceExcludes) {
- if (path.matches(exclude)) {
+ if (path.replace(File.separatorChar, '/').matches(exclude)) {
getLog().debug("Exclude source file: " + file.getAbsolutePath());
continue copy;
}