}
*/
if (!ftp.changeWorkingDirectory(dir)) {
LOG.info("makeDirs: could not CD into " + dir);
if (!ftp.makeDirectory(dir)) {
throw new CruiseControlException(
"could not create directory [" + dir + ", full="
+ fullPath + "]: "
+ ftp.getReplyString());
}
LOG.info("makeDirs: created dir " + dir);
if (!ftp.changeWorkingDirectory(dir)) {
throw new CruiseControlException(
"could not change to directory: "
+ ftp.getReplyString());
}
LOG.info("makeDirs: CDed into " + dir);
}
knownPaths.addElement(fullPath);
}
ftp.changeWorkingDirectory(cwd);
} catch (IOException ex) {
ex.printStackTrace();
throw new CruiseControlException(ex.getMessage());
}
}