if(logger.isInfoEnabled())
logger.info("Rsync-ing " + sourceDirectory.getAbsolutePath() + " to "
+ destinationDirectory + " on remote hosts: " + hostNames);
if(!sourceDirectory.exists())
throw new RemoteOperationException(sourceDirectory.getAbsolutePath()
+ " does not exist");
if(!sourceDirectory.isDirectory())
throw new RemoteOperationException("Directory " + sourceDirectory.getAbsolutePath()
+ " is not a directory");
CommandLineParameterizer commandLineParameterizer = new CommandLineParameterizer("RsyncDeployer.rsync"
+ (sshPrivateKey != null ? ""
: ".nokey"));