Comments in the Report Designer (XMl source tab)

crowt999
edited February 11, 2022 in Analytics #1
Hello all,

If you look at the top of the XML generated by the report writer GUI, there are comment lines there that look like:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Written by Eclipse BIRT 2.0 -->

We are using a CVS repository, and always have to paste in our comment blank at the top of the XML directly before we check in the file, something like this:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Written by Eclipse BIRT 2.0 -->
<!--
=============================
Last edited by: $Author: $
on: $Date: $
Filename: $RCSfile: $
Revision: $Revision: $
=============================
-->
<!-- Written by Eclipse BIRT 2.0 -->


Now every time you change something on the report, the comment reverts back to the first one, and we have to paste in the CVS header all over again.

This is somewhat annoying (especially when you forget to put it in!), so does anyone know of anyway to change the heading permanently?

Thanks for any help
Dean

Comments

  • rmurphy
    edited December 31, 1969 #2
    Dean,
    You can set a template comment by in Windows --> Preferences --> Report Design --> Comment Template

    It will show up in the XML Source like:

    <?xml version="1.0" encoding="UTF-8"?>
    <report xmlns="http://www.eclipse.org/birt/2005/design&quot; version="3.2.15" id="1">
    <property name="units">in</property>
    <property name="comments">=============================
    Last edited by: $Author: $
    on: $Date: $
    Filename: $RCSfile: $
    Revision: $Revision: $
    =============================</property>


    Rob
  • crowt999
    edited December 31, 1969 #3
    Rob,

    Thanks for the tip. I put the comments in here, and CVS and our internal code release system picked it up & it works great...

    Thanks!
    Dean