in src/main/java/org/apache/openejb/tools/release/util/Files.java [95:110]
public static void remove(final File file) {
if (file == null) return;
if (!file.exists()) return;
if (file.isDirectory()) {
final File[] files = file.listFiles();
if (files != null) {
for (final File child : files) {
remove(child);
}
}
}
if (!file.delete()) {
throw new IllegalStateException("Could not delete file: " + file.getAbsolutePath());
}
}