////////////////////////////////////////////////////////////////////////////
private static void verify(File inWebDir, File outWebDir) throws DeploymentException {
// inWebDir must exist, outWebDir must either exist or be creatable
if (!FileUtils.safeIsDirectory(inWebDir)) {
throw new DeploymentException("inWebDir is not a directory: " + inWebDir);
}
if (!FileUtils.safeIsDirectory(outWebDir)) {
outWebDir.mkdirs();
if (!FileUtils.safeIsDirectory(outWebDir)) {
throw new DeploymentException("outWebDir is not a directory, and it can't be created: " + outWebDir);
}
}
}