From 6f5906331788ccf57ebd594a7a6d90797fd31e76 Mon Sep 17 00:00:00 2001 From: tandraschko Date: Wed, 18 Dec 2024 16:44:29 +0100 Subject: [PATCH] fixed build on windows 10 --- .../buildtools/maven2/plugin/builder/MakeComponentsMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/MakeComponentsMojo.java b/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/MakeComponentsMojo.java index b2cead31..7e5bed79 100644 --- a/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/MakeComponentsMojo.java +++ b/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/MakeComponentsMojo.java @@ -462,7 +462,8 @@ public void addFilesToBuilder(JavaDocBuilder builder, File dir) throws IOExcepti boolean skip = false; for(int i = 0; i < excludes.length; i++) { String currentExclude= excludes[i]; - if(currentExclude != null && f.toString().matches(currentExclude)) + String filepath = f.toString().replace("\\", "/"); + if(currentExclude != null && filepath.matches(currentExclude)) { getLog().info("Excluding source from builder: " + f); skip = true;