if (parameters.hasOption(OVERRIDE)) {
System.out.println("Overriding output directory...");
try {
FileUtils.deleteDirectory(out);
} catch (IOException e) {
throw new CrawljaxException(e.getMessage(), e);
}
} else {
throw new IllegalStateException(
"Output directory is not empty. If you want to override, use the -override option");
}