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=24569>.
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=24569

cvschangelog not adding prevrevision on all files

           Summary: cvschangelog not adding prevrevision on all files
           Product: Ant
           Version: 1.6Beta
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Running ant's task cvschangelog creates an output file that doesn't contain the 
<prevrevision> tag for all of the files.  Some files have this information and 
some do not.  The files that have this information, will generate a valid link 
after the <xslt> task is run.  

We have the same problems with Java source code as well as the Delphi code and 
with Ant v1.5.4 and Ant 1.6Beta.

I've also run a cvs log on both of these entries and can't see anything that 
would cause this difference in code xml generation.
-----------------------------------------------------------------------
Sample ant change log target:
-----------------------------------------------------------------------

<target name="clientChangeLog" depends="JVMv1.4Test, init" 
 description="Create CVS Change Log for the Delphi Client Components">
                
<cvschangelog dir="${root.dir}\xinsure_client\auto\src\delphi"
                                destfile="${templogfile}"
                                daysinpast="${daysToCheck}"/>
                
    <echo>XML file created - converting to HTML</echo>
    <delete file="${localDir}/${clientoutfile}"/>

    <!-- xslt requires version Java v1.4 -->
    <xslt in="${templogfile}" 
          out="${localDir}/${clientoutfile}"
          style="${ant.home}\etc\changelog.xsl">
        <param name="title" expression="Client Change Log - Last ${daysToCheck} 
Days"/>
        <param name="module" 
expression="xinsure/xinsure_client/auto/src/delphi"/>
        <param name="cvsweb" expression="http://localhost/cgi-
bin/viewcvs/viewcvs.cgi/"/>       
    </xslt>

</target>

-----------------------------------------------------------------------
Sample cvschangelog result - first file listed doesn't have the 
<prerevision> tag, second file does.
-----------------------------------------------------------------------
<changelog>
  <entry>
        <date>2003-11-06</date>
        <time>15:44</time>
        <author><![CDATA[khusby]]></author>
        <file>
                <name>info3/InfoThinDaapi.pas</name>
                <revision>1.255</revision>
        </file>
        <msg><![CDATA[Bug 3252 correct problem of A transactions showing on the 
Current tab of a policy when those transactions are Closed.]]></msg>
  </entry>
  <entry>
        <date>2003-11-07</date>
        <time>23:23</time>
        <author><![CDATA[khusby]]></author>
        <file>
                <name>info3/InfoThinDaapi.pas</name>
                <revision>1.256</revision>
                <prevrevision>1.255</prevrevision>
        </file>
        <msg><![CDATA[Bug 3535 modified client to prevent the creation of blank 
collateral if an empty space is in the collatoral portion of the loan edit.]]
></msg>
 </entry>
</changelog>

-----------------------------------------------------------------------
Sample xslt result - just the two links, the first link (revision 1.256)
generates a valid url.  The second link (revision 1.255) creates a link
that is wanting to download the source file instead of showing the cvs
revision information.
-----------------------------------------------------------------------
<a href="http://localhost/cgi-
bin/viewcvs/viewcvs.cgi/xinsure/xinsure_client/auto/src/delphi/info3/InfoThinDaa
pi.pas?r1=1.256&r2=1.255">info3/InfoThinDaapi.pas (1.256)</a>

<a href="http://localhost/cgi-
bin/viewcvs/viewcvs.cgi/xinsure/xinsure_client/auto/src/delphi/info3/InfoThinDaa
pi.pas?rev=1.255&content-type=text/x-cvsweb-markup">info3/InfoThinDaapi.pas 
(1.255)</a>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to