Hi All,

I've found this: 
http://confluence.public.thoughtworks.org/display/CC/IntegratingCruiseControlWithViewCvs

Where right at the bottom it has a section that hints at modifying the
email publisher but I don't know how to derive a class of what?

Clipping... here is what it says:

Customising the Cruise Control HTML Email Publisher'

The easiest aproach to add additional XSLT transforms to the Cruise
Control HTML Email Publisher, is to derive your own class from
HTMLEMailPublisher and add the aditional cvstagdiff.xsl transformation
file to the file list. You then register this new class in your Cruise
Control config.xml file and use in in place of the regular HTML Email
Publisher.

public class CustomHTMLEmailPublisher extends HTMLEmailPublisher
{
  private String[] newXslFileNames =
  {
    "header.xsl",
    "compile.xsl",
    "javadoc.xsl",
    "unittests.xsl",
    "modifications.xsl",
    "cvstagdiff.xsl",  // New stylesheet
    "distributables.xsl"
  };

  public CustomHTMLEmailPublisher()
  {
    super();
    setXSLFileNames(newXslFileNames);
  }
}


Now how would one go about doing this? I'm guessing its a C# class?

Cheers,
(Almost there!!! Last problem, PLEASE PLEASE HELP) Shaun

Reply via email to