Exemple #1
0
        protected override void ExecuteTask()
        {
            var result = new Application(_parameters).Run();

            result.Output
                  .SplitLines()
                  .Where(x => x.Contains("..."))
                  .Select(x => x.Split(2, "...").Last())
                  .Where(x => x.ContainsAlpha())
                  .ToList().ForEach(x => Log(Level.Info, x));

            if (!result.Success)
            {
                if (ResultProperty != null) Properties[ResultProperty] = "1";
                throw new BuildException("DBGhost Change Manager encountered an error. View the log for more information.");
            }
            if (ResultProperty != null) Properties[ResultProperty] = "0";
        }
Exemple #2
0
 // ────────────────────────── Private Members ──────────────────────────
 private static bool RunChangeManager()
 {
     var options = new ChangeManager.Options();
     Initialization.Options.Load(Environment.CommandLine, options);
     var application = new Application(GetChangeManagerParameters(options));
     var result = application.Run();
     if (!result.Success) Console.WriteLine("DBGhost Change Manager encountered and error. View the log for more information.");
     return result.Success;
 }
Exemple #3
0
 protected override void ExecuteTask()
 {
     Application application = new Application(_parameters);
     if (!application.Run(LogEntry))
     {
         if (ResultProperty != null)
         {
             Properties[ResultProperty] = "1";
         }
         throw new BuildException("DBGhost Change Manager encountered an error. View the log for more information.");
     }
     if (ResultProperty != null)
     {
         Properties[ResultProperty] = "0";
     }
 }