25 lines
827 B
C#
Executable File
25 lines
827 B
C#
Executable File
using System.Collections;
|
|
using ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation;
|
|
using ThoughtWorks.CruiseControl.Core.Util;
|
|
|
|
namespace ThoughtWorks.CruiseControl.WebDashboard.Dashboard
|
|
{
|
|
public class BuildRequestTransformer : IBuildLogTransformer
|
|
{
|
|
private readonly IMultiTransformer transformer;
|
|
private readonly IBuildRetriever buildRetriever;
|
|
|
|
public BuildRequestTransformer(IBuildRetriever buildRetriever, IMultiTransformer transformer)
|
|
{
|
|
this.buildRetriever = buildRetriever;
|
|
this.transformer = transformer;
|
|
}
|
|
|
|
public string Transform(IBuildSpecifier buildSpecifier, string[] transformerFileNames, Hashtable xsltArgs)
|
|
{
|
|
string log = buildRetriever.GetBuild(buildSpecifier).Log;
|
|
return transformer.Transform(log, transformerFileNames, xsltArgs);
|
|
}
|
|
}
|
|
}
|