LOG.info("Project name: " + projectName);
}
protected void validate() throws CruiseControlException {
if (buildFile == null) {
throw new CruiseControlException("No build file specified.");
}
if (propertiesFile == null) {
throw new CruiseControlException("No properties file specified.");
}
if (configFile == null) {
throw new CruiseControlException("No configuration file specified.");
}
if (projectName == null) {
throw new CruiseControlException("No project name specified.");
}
if (!buildFile.exists()) {
throw new CruiseControlException(
"The specified build file: '"
+ buildFile.getAbsolutePath()
+ "' does not exist.");
}
if (!propertiesFile.exists()) {
throw new CruiseControlException(
"The specified properties file: '"
+ propertiesFile.getAbsolutePath()
+ "' does not exist.");
}
if (configFile.exists()) {
throw new CruiseControlException(
"The specified configuration file: '"
+ configFile.getAbsolutePath()
+ "' exists. Delete and try again.");
}