Use cleaned path when checking for generated source

Update `JavaConventions` to use a cleaned path when checking for
generated sources to ensure that files are also detected on Windows.

See gh-49153
This commit is contained in:
Phillip Webb
2026-03-19 15:55:39 -07:00
parent 8ac58c1869
commit a72db5b670
@@ -309,7 +309,7 @@ class JavaConventions {
}
private boolean isGeneratedSource(FileTreeElement candidate) {
String path = candidate.getFile().getPath();
String path = StringUtils.cleanPath(candidate.getFile().getPath());
return path.contains("/generated/sources/") || path.contains("/generated-source/");
}