Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        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());
        }
Esempio n. 3
0
 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");
 }
Esempio n. 4
0
 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));
 }