Index: src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java =================================================================== RCS file: /home/cvspublic/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java,v retrieving revision 1.16.2.3 diff -u -r1.16.2.3 CvsTagDiff.java --- src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java 6 Nov 2003 21:20:33 -0000 1.16.2.3 +++ src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java 19 Jan 2004 18:22:46 -0000 @@ -165,6 +165,11 @@ * Used to create the temp file for cvs log */ private FileUtils myfileUtils = FileUtils.newFileUtils(); + + /** + * Used to skip over removed files + */ + private boolean ignoreRemoved = false; /** * The package/module to analyze. @@ -220,6 +225,15 @@ } /** + * Set the ignore removed indicator. + * + * @param b the ignore removed indicator. + */ + public void setIgnoreRemoved(boolean b) { + ignoreRemoved = b; + } + + /** * Execute task. * * @exception BuildException if an error occurs @@ -349,7 +363,7 @@ prevRevision); entries.addElement(entry); log(entry.toString(), Project.MSG_VERBOSE); - } else if ((index = line.indexOf(FILE_WAS_REMOVED)) != -1) { + } else if (((index = line.indexOf(FILE_WAS_REMOVED)) != -1) && !ignoreRemoved ) { // it is a removed file String filename = line.substring(0, index); String rev = null;