On Fri, Aug 29, 2008 at 05:46, DaveMoor <[EMAIL PROTECTED]> wrote:

> My idea
> was to use an XML file for this, I assume the best place for this is
> the Aritfacts directory of the project,


That's the usual place, at least by default.  You'll find that most CCNET
tasks allow you to override the directory name and the file name, usually as
separate properties of the task.


> can I access that location
> easily from a plugin?


Yes.  When your task's Run() method is called, it will be passed an
IntegrationResult object (strictly speaking, an object implementing the
IIntegrationResult interface), and you can look up the project's Artifacts
directory name from the IntegrationResult 's ArtifactDirectory property, or
locate a directory relative to it by calling the IntegrationResult's
BaseFromArtifactsDirectory() method.

Also I assume I need to merge the output into the build log so I can
> then produce an XSL translation file to format it and include it in
> the email message, is that easy to do also?


Yes.  Your task should create one of several kinds of task results objects
(implementations of the ITaskResult interface) and add it to the
IntegrationResult via the AddTaskResult() method.  That also lets you do
things like communicate the success or failure of the task, and influence
the rest of the build accordingly.

Ross

Reply via email to