}
}
private void verifyDirectory(String dirName, String dir) throws CruiseControlException {
if (dir == null) {
throw new CruiseControlException(dirName + " not specified in configuration file");
}
File dirFile = new File(dir);
if (!dirFile.exists()) {
throw new CruiseControlException(
dirName + " does not exist : " + dirFile.getAbsolutePath());
}
if (!dirFile.isDirectory()) {
throw new CruiseControlException(
dirName + " is not a directory : " + dirFile.getAbsolutePath());
}
}