user.validate();
userList.put(user.getUserID(), user.getDisplayname());
}
final Commandline command = new Commandline();
command.setExecutable("cvs");
command.createArgument().setValue("log");
if (null != m_start) {
final SimpleDateFormat outputDate =
new SimpleDateFormat("yyyy-MM-dd");
// We want something of the form: -d ">=YYYY-MM-dd"
final String dateRange = "-d >="
+ outputDate.format(m_start);
command.createArgument().setValue(dateRange);
}
// Check if list of files to check has been specified
if (!m_filesets.isEmpty()) {
final Enumeration e = m_filesets.elements();
while (e.hasMoreElements()) {
final FileSet fileSet = (FileSet) e.nextElement();
final DirectoryScanner scanner =
fileSet.getDirectoryScanner(project);
final String[] files = scanner.getIncludedFiles();
for (int i = 0; i < files.length; i++) {
command.createArgument().setValue(files[i]);
}
}
}
final ChangeLogParser parser = new ChangeLogParser();
final RedirectingStreamHandler handler =
new RedirectingStreamHandler(parser);
log("ChangeLog command: [" + command.toString() + "]",
Project.MSG_VERBOSE);
final Execute exe = new Execute(handler);
exe.setWorkingDirectory(m_dir);
exe.setCommandline(command.getCommandline());
exe.setAntRun(getProject());
try {
final int resultCode = exe.execute();
if (0 != resultCode) {