mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-03 15:59:31 +00:00
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:
@@ -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/");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user