}
}
public void validate() throws CruiseControlException {
if (filename == null && cvsroot == null && localWorkingCopy == null) {
throw new CruiseControlException(
"at least one of 'file', 'cvsroot' or 'localworkingcopy' "
+ "is required as an attribute for CVSBootstrapper");
}
if (localWorkingCopy != null) {
File workingDir = new File(localWorkingCopy);
if (!workingDir.exists()) {
throw new CruiseControlException(
"'localWorkingCopy' must be an existing directory. Was <"
+ localWorkingCopy
+ ">");
} else if (!workingDir.isDirectory()) {
throw new CruiseControlException(
"'localWorkingCopy' must be an existing directory, not a file. Was <"
+ localWorkingCopy
+ ">");
}
}