@@ -0,0 +1,1206 @@
+package io.quarkus.deployment.util;%0A%0Aimport java.io.IOException;%0Aimport java.nio.file.FileVisitResult;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.SimpleFileVisitor;%0Aimport java.nio.file.attribute.BasicFileAttributes;%0A%0Apublic class FileUtil %7B%0A%0A    public static void deleteDirectory(final Path directory) throws IOException %7B%0A        if (!Files.isDirectory(directory)) %7B%0A            return;%0A        %7D%0A        Files.walkFileTree(directory, new SimpleFileVisitor%3CPath%3E() %7B%0A            @Override%0A            public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException %7B%0A                try %7B%0A                    Files.delete(file);%0A                %7D catch (IOException e) %7B%0A                    // ignored%0A                %7D%0A                return FileVisitResult.CONTINUE;%0A            %7D%0A%0A            @Override%0A            public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException %7B%0A                try %7B%0A                    Files.delete(dir);%0A                %7D catch (IOException e) %7B%0A                    // ignored%0A                %7D%0A                return FileVisitResult.CONTINUE;%0A            %7D%0A%0A        %7D);%0A    %7D%0A%7D%0A

Add a common FileUtil class