Merge pull request #4 from t-gergely/sourceExcludes
sourceExcludes didn't work on Windows
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 @@
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;
}