//------------------------
// Connect to the CVS
//------------------------
Client client = getClient();
//------------------------
// Setup the command
//------------------------
UpdateCommand command = new UpdateCommand();
command.setBuilder(null);
command.setRecursive(true);
command.setPruneDirectories(true);
command.setUseHeadIfNotFound(false);
command.setBuildDirectories(true);
logger.info("FILE PATH: " + aFiles[0].getAbsolutePath());
if (aFiles != null)
{
logger.info("SETTING FILES: ");
for (int i = 0; i < aFiles.length; i ++)
{
logger.info("- " + aFiles[i].getAbsolutePath());
}
command.setFiles(aFiles);
}
if (aTagName != null)
{
command.setUpdateByRevision(aTagName);
}
logger.info("CVS COMMAND: " + command.getCVSCommand());
//------------------------
// Execute the command
//------------------------
client.executeCommand(command, globalOptions);
logger.info("UPDATE COMPLETED");
}