Class CvsTagDiff

All Implemented Interfaces:
Cloneable

public class CvsTagDiff extends AbstractCvsTask
Examines the output of cvs rdiff between two tags. It produces an XML output representing the list of changes.
 <!-- Root element -->
 <!ELEMENT tagdiff (entry+) >
 <!-- Start tag of the report -->
 <!ATTLIST tagdiff startTag NMTOKEN #IMPLIED >
 <!-- End tag of the report -->
 <!ATTLIST tagdiff endTag NMTOKEN #IMPLIED >
 <!-- Start date of the report -->
 <!ATTLIST tagdiff startDate NMTOKEN #IMPLIED >
 <!-- End date of the report -->
 <!ATTLIST tagdiff endDate NMTOKEN #IMPLIED >

 <!-- CVS tag entry -->
 <!ELEMENT entry (file) >
 <!-- File added, changed or removed -->
 <!ELEMENT file (name, revision?, prevrevision?) >
 <!-- Name of the file -->
 <!ELEMENT name (#PCDATA) >
 <!-- Revision number -->
 <!ELEMENT revision (#PCDATA) >
 <!-- Previous revision number -->
 <!ELEMENT prevrevision (#PCDATA) >
 
Since:
Ant 1.5
  • Constructor Details

    • CvsTagDiff

      public CvsTagDiff()
  • Method Details

    • setPackage

      public void setPackage(String p)
      The package/module to analyze.
      Overrides:
      setPackage in class AbstractCvsTask
      Parameters:
      p - the name of the package to analyse
    • setStartTag

      public void setStartTag(String s)
      Set the start tag.
      Parameters:
      s - the start tag.
    • setStartDate

      public void setStartDate(String s)
      Set the start date.
      Parameters:
      s - the start date.
    • setEndTag

      public void setEndTag(String s)
      Set the end tag.
      Parameters:
      s - the end tag.
    • setEndDate

      public void setEndDate(String s)
      Set the end date.
      Parameters:
      s - the end date.
    • setDestFile

      public void setDestFile(File f)
      Set the output file for the diff.
      Parameters:
      f - the output file for the diff.
    • setIgnoreRemoved

      public void setIgnoreRemoved(boolean b)
      Set the ignore removed indicator.
      Parameters:
      b - the ignore removed indicator.
      Since:
      Ant 1.8.0
    • execute

      public void execute() throws BuildException
      Execute task.
      Overrides:
      execute in class AbstractCvsTask
      Throws:
      BuildException - if an error occurs