private View(ViewRoot viewRoot, ConfigSpec configSpec, ProductId productId, TargetVersion targetVersion, SrBranchName srBranchName, string build, ViewType?viewType) { ViewRoot = viewRoot; ConfigSpec = configSpec; ProductId = productId; TargetVersion = targetVersion; SrBranchName = srBranchName; Build = build; ViewType = viewType; }
public static string[] GetSrCs(ProductId product, TargetVersion target, SrBranchName sr, bool optimize) { var output = CommandLineExecutor.ExecuteCmd(GetSrCsCommandText(product, target, sr, optimize)); return(output.Split(new[] { "\r\n" }, StringSplitOptions.None) .SkipUntil(x => x.Contains(Constants.GetSrCsScriptFileName)) .TakeWhile(x => !x.EndsWith(">exit")) .Select(x => x.Replace("# stgsrvload", "#stgsrvload")) .ToArray()); }
private static string GetSrCsCommandText(ProductId product, TargetVersion target, SrBranchName sr, bool optimize) { return($"powershell {Constants.GetSrCsScriptFullFileName} {product.Name} {target.Value} {sr.Value} false true {optimize.AsExactString()} true"); }
public static View Sr(ViewRoot viewRoot, ConfigSpec configSpec, ProductId productId, TargetVersion targetVersion, SrBranchName srBranchName) { return(new View(viewRoot, configSpec, productId, targetVersion, srBranchName, null, Model.ViewType.Sr)); }