add cleanLoomMappings, close #36

This commit is contained in:
Adrian Siekierka
2018-12-22 15:35:36 +01:00
parent d9b8c90b5f
commit a39d0b6656
4 changed files with 99 additions and 13 deletions

View File

@@ -125,19 +125,7 @@ public class SourceRemapper {
}
if (isSrcTmp) {
Files.walkFileTree(srcPath, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path path, BasicFileAttributes basicFileAttributes) throws IOException {
Files.delete(path);
return FileVisitResult.CONTINUE;
}
@Override
public FileVisitResult postVisitDirectory(Path path, IOException e) throws IOException {
Files.delete(path);
return FileVisitResult.CONTINUE;
}
});
Files.walkFileTree(srcPath, new DeletingFileVisitor());
}
}