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 <[email protected]>
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;
}