}
buildDir = checkoutDir.reify(DirectoryResource.class);
if (!shell.promptBoolean("Directory " + buildDir.getFullyQualifiedName()
+ " already exists. Do you want to overwrite?", false))
{
throw new AbortedException("Directory " + buildDir.getFullyQualifiedName()
+ " already exists");
}
buildDir.delete(true);
buildDir.mkdirs();
}