<!-- 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) >
| Modifier and Type | Field and Description |
|---|---|
| private static final DOMElementWriter | DOM_WRITER
stateless helper for writing the XML document |
| pack-priv static final String | FILE_HAS_CHANGED
Token to identify a modified file in the rdiff log |
| pack-priv static final String | FILE_IS_NEW
Token to identify a new file in the rdiff log |
| pack-priv static final String | FILE_STRING
Token to identify the word file in the rdiff log |
| pack-priv static final int | FILE_STRING_LENGTH
Length of token to identify the word file in the rdiff log |
| private static final FileUtils | FILE_UTILS
Used to create the temp file for cvs log |
| pack-priv static final String | FILE_WAS_REMOVED
Token to identify a removed file in the rdiff log |
| private boolean | ignoreRemoved
Used to skip over removed files |
| private File | mydestfile
The file in which to write the diff report. |
| private String | myendDate
The latest date from which diffs are to be included in the report. |
| private String | myendTag
The latest tag from which diffs are to be included in the report. |
| private String | mypackage
The cvs package/module to analyse |
| private String | mystartDate
The earliest date from which diffs are to be included in the report. |
| private String | mystartTag
The earliest tag from which diffs are to be included in the report. |
| private String[] | packageNamePrefixes
temporary list of "File:" + package name + "/" for all packages. |
| private int[] | packageNamePrefixLengths
temporary list of length values for prefixes. |
| private List | packageNames
temporary list of package names. |
| pack-priv static final String | REVISION
Token to identify the revision |
| pack-priv static final String | TO_STRING
Token to identify the word file in the rdiff log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| public void | |
| private void | |
| private CvsTagEntry[] | Returns: the entries in the outputthe File containing the output of the cvs rdiff command tmpFile)Parse the tmpFile and return and array of CvsTagEntry to be written in the output. |
| private static String | Returns: null if the line was shorter than expected.removes a "File: module/" prefix if present. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setPackage(String
the name of the package to analyse p)Overrides org. |
| public void | |
| public void | |
| private void | |
| private void | |
| private void | writeTagEntry(Document
Document used to create elements. doc, PrintWriter a writer, CvsTagEntry PrintWriter valuea entry)CvsTagEntry valueWrite a single entry to the given writer. |
| DOM_WRITER | back to summary |
|---|---|
| private static final DOMElementWriter DOM_WRITER stateless helper for writing the XML document | |
| FILE_HAS_CHANGED | back to summary |
|---|---|
| pack-priv static final String FILE_HAS_CHANGED Token to identify a modified file in the rdiff log | |
| FILE_IS_NEW | back to summary |
|---|---|
| pack-priv static final String FILE_IS_NEW Token to identify a new file in the rdiff log | |
| FILE_STRING | back to summary |
|---|---|
| pack-priv static final String FILE_STRING Token to identify the word file in the rdiff log | |
| FILE_STRING_LENGTH | back to summary |
|---|---|
| pack-priv static final int FILE_STRING_LENGTH Length of token to identify the word file in the rdiff log | |
| FILE_UTILS | back to summary |
|---|---|
| private static final FileUtils FILE_UTILS Used to create the temp file for cvs log | |
| FILE_WAS_REMOVED | back to summary |
|---|---|
| pack-priv static final String FILE_WAS_REMOVED Token to identify a removed file in the rdiff log | |
| ignoreRemoved | back to summary |
|---|---|
| private boolean ignoreRemoved Used to skip over removed files | |
| mydestfile | back to summary |
|---|---|
| private File mydestfile The file in which to write the diff report. | |
| myendDate | back to summary |
|---|---|
| private String myendDate The latest date from which diffs are to be included in the report. | |
| myendTag | back to summary |
|---|---|
| private String myendTag The latest tag from which diffs are to be included in the report. | |
| mypackage | back to summary |
|---|---|
| private String mypackage The cvs package/module to analyse | |
| mystartDate | back to summary |
|---|---|
| private String mystartDate The earliest date from which diffs are to be included in the report. | |
| mystartTag | back to summary |
|---|---|
| private String mystartTag The earliest tag from which diffs are to be included in the report. | |
| packageNamePrefixes | back to summary |
|---|---|
| private String[] packageNamePrefixes temporary list of "File:" + package name + "/" for all packages. | |
| packageNamePrefixLengths | back to summary |
|---|---|
| private int[] packageNamePrefixLengths temporary list of length values for prefixes. | |
| packageNames | back to summary |
|---|---|
| private List<String> packageNames temporary list of package names. | |
| REVISION | back to summary |
|---|---|
| pack-priv static final String REVISION Token to identify the revision | |
| TO_STRING | back to summary |
|---|---|
| pack-priv static final String TO_STRING Token to identify the word file in the rdiff log | |
| CvsTagDiff | back to summary |
|---|---|
| public CvsTagDiff() | |
| doFileHasChanged | back to summary |
|---|---|
| private boolean doFileHasChanged(List<CvsTagEntry> entries, String line) | |
| doFileIsNew | back to summary |
|---|---|
| private boolean doFileIsNew(List<CvsTagEntry> entries, String line) | |
| doFileWasRemoved | back to summary |
|---|---|
| private boolean doFileWasRemoved(List<CvsTagEntry> entries, String line) | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute task.
| |
| handlePackageNames | back to summary |
|---|---|
| private void handlePackageNames() collects package names from the package attribute and nested module elements. | |
| parseRDiff | back to summary |
|---|---|
| private CvsTagEntry[] parseRDiff(File tmpFile) throws BuildException Parse the tmpFile and return and array of CvsTagEntry to be written in the output.
| |
| removePackageName | back to summary |
|---|---|
| private static String removePackageName(String line, String[] packagePrefixes, int[] prefixLengths) removes a "File: module/" prefix if present.
| |
| setDestFile | back to summary |
|---|---|
| public void setDestFile(File f) Set the output file for the diff.
| |
| setEndDate | back to summary |
|---|---|
| public void setEndDate(String s) Set the end date.
| |
| setEndTag | back to summary |
|---|---|
| public void setEndTag(String s) Set the end tag.
| |
| setIgnoreRemoved | back to summary |
|---|---|
| public void setIgnoreRemoved(boolean b) Set the ignore removed indicator.
| |
| setPackage | back to summary |
|---|---|
| public void setPackage(String p) Overrides org. The package/module to analyze. | |
| setStartDate | back to summary |
|---|---|
| public void setStartDate(String s) Set the start date.
| |
| setStartTag | back to summary |
|---|---|
| public void setStartTag(String s) Set the start tag.
| |
| validate | back to summary |
|---|---|
| private void validate() throws BuildException Validate the parameters specified for task.
| |
| writeTagDiff | back to summary |
|---|---|
| private void writeTagDiff(CvsTagEntry[] entries) throws BuildException Write the rdiff log.
| |
| writeTagEntry | back to summary |
|---|---|
| private void writeTagEntry(Document doc, PrintWriter writer, CvsTagEntry entry) throws IOException Write a single entry to the given writer.
| |