Fix thirdPartyAudit check on Windows in case of jar hell with JDK

This commit is contained in:
Yannick Welsch 2015-12-31 12:10:48 +01:00
parent cb08c52a2a
commit d5191518ba
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ public class ThirdPartyAuditTask extends AntTask {
Files.walkFileTree(root, new SimpleFileVisitor<Path>() { Files.walkFileTree(root, new SimpleFileVisitor<Path>() {
@Override @Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { 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 (entry.endsWith(".class")) {
if (ext.getResource(entry) != null) { if (ext.getResource(entry) != null) {
sheistySet.add(entry); sheistySet.add(entry);