ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16081] New: - The cvstagdiff task *should* usefully echo the requested package and cvsroot in its XML output
Date Tue, 14 Jan 2003 23:11:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16081>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16081

The cvstagdiff task *should* usefully echo the requested package and cvsroot in its XML output

           Summary: The cvstagdiff task *should* usefully echo the requested
                    package and cvsroot in its XML output
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: tony@bci.gb.com


The cvstagdiff task does not echo the supplied package and cvsroot attributes 
in the XML output. This makes it difficult to use the remaining data in the 
output XML file to prepare queries for CVSWeb, ViewCVS or commands for CVS. A 
current (1.5.1) sample output for the the following build.xml segment:

<cvstagdiff cvsroot   = ":pserver:/usr/local/cvs"
            destfile  = "tagdiff.xml"
            package   = "myproject"
            startdate = "'2003-01-14 10:14:57'"
            enddate   = "'2003-01-14 10:23:28'" />

is:

<?xml version="1.0" encoding="UTF-8"?>
<tagdiff startDate="'2003-01-14 10:14:57'" endDate="'2003-01-14 10:23:28'" >
  <entry>
    <file>
      <name>buildfiles/libbuild.xml</name>
	<revision>1.27</revision>
	<prevrevision>1.26</prevrevision>
    </file>
  </entry>
</tagdiff>
 
The partial path to the file (buildfiles/libbuild.xml) is insufficient to 
independently locate the file without implicitly knowing the cvsroot and the 
package (module) name.

It would be more useful to output:

<?xml version="1.0" encoding="UTF-8"?>
<tagdiff startDate="'2003-01-14 10:14:57'" 
         endDate="'2003-01-14 10:23:28'"
         cvsroot=":pserver:/usr/local/cvs" 
         package="myproject" >
  <entry>
    <file>
      <name>buildfiles/libbuild.xml</name>
	<revision>1.27</revision>
	<prevrevision>1.26</prevrevision>
    </file>
  </entry>
</tagdiff>

With this information it is possible to reconstruct from an independent parsing 
the XML that the file revisons can be recovered from:

:pserver:/usr/local/cvs/myproject/buildfiles/libbuild.xml

This enhancement is easily added by inserting two lines in CvsTagDiff.java in 
the method writetagDiff at lines 473, 474:

            writer.print("cvsroot=\"" + m_cvs.getCvsRoot() + "\" ");
            writer.print("package=\"" + m_package + "\" ");

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message