public String GetSummary(String name, String log) { String xsl = GetXslFullFileName("header.xsl"); String content = cruiseManager.GetLog(name, log); XPathDocument document = new XPathDocument(new StringReader(content)); return(logTransformer.Transform(document, xsl)); }
public IResponse Execute(ICruiseRequest cruiseRequest) { if (xslFileName == null) { throw new ApplicationException("XSL File Name has not been set for XSL Report Action"); } Hashtable xsltArgs = new Hashtable(); if (cruiseRequest.Request.ApplicationPath == "/") { xsltArgs["applicationPath"] = string.Empty; } else { xsltArgs["applicationPath"] = cruiseRequest.Request.ApplicationPath; } // Add the input parameters if (Parameters != null) { foreach (var parameter in Parameters) { xsltArgs.Add(parameter.Name, parameter.Value); } } return(new HtmlFragmentResponse(buildLogTransformer.Transform(cruiseRequest.BuildSpecifier, new string[] { xslFileName }, xsltArgs, cruiseRequest.RetrieveSessionToken()))); }
public IResponse Execute(ICruiseRequest cruiseRequest) { if (xslFileName == null) { throw new ApplicationException("XSL File Name has not been set for XSL Report Action"); } return(new HtmlFragmentResponse(buildLogTransformer.Transform(cruiseRequest.BuildSpecifier, xslFileName))); }
public IResponse Execute(ICruiseRequest cruiseRequest) { if (this.XslFileNames == null) { throw new ApplicationException("XSL File Name has not been set for XSL Report Action"); } Hashtable xsltArgs = new Hashtable(); xsltArgs["applicationPath"] = cruiseRequest.Request.ApplicationPath; var fileNames = this.GenerateFilenameList(cruiseRequest); return(new HtmlFragmentResponse(buildLogTransformer.Transform(cruiseRequest.BuildSpecifier, fileNames.ToArray(), xsltArgs, cruiseRequest.RetrieveSessionToken()))); }
public IResponse Execute(ICruiseRequest cruiseRequest) { if (xslFileName == null) { throw new ApplicationException("XSL File Name has not been set for XSL Report Action"); } Dictionary <string, string> XslParms = new Dictionary <string, string>(); XslParms.Add("CCNetServer", cruiseRequest.ServerName); XslParms.Add("CCNetBuild", cruiseRequest.BuildName); XslParms.Add("CCNetProject", cruiseRequest.ProjectName); XslParms.Add("applicationPath", cruiseRequest.Request.ApplicationPath); return(new HtmlFragmentResponse(buildLogTransformer.Transform(cruiseRequest.BuildSpecifier, XslParms, xslFileName))); }