Fix thirdPartyAudit check on Windows in case of jar hell with JDK
This commit is contained in:
parent
cb08c52a2a
commit
d5191518ba
|
@ -244,7 +244,7 @@ public class ThirdPartyAuditTask extends AntTask {
|
|||
Files.walkFileTree(root, new SimpleFileVisitor<Path>() {
|
||||
@Override
|
||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
||||
String entry = root.relativize(file).toString();
|
||||
String entry = root.relativize(file).toString().replace('\\', '/');
|
||||
if (entry.endsWith(".class")) {
|
||||
if (ext.getResource(entry) != null) {
|
||||
sheistySet.add(entry);
|
||||
|
|
Loading…
Reference in New Issue