예제 #1
0
        public override void execute()
        {
            base.execute();
            SSTUBuildTools.print("Executing command: " + command);
            Process          process = new Process();
            ProcessStartInfo si      = new ProcessStartInfo();

            string[] sp = command.Split(' ');
            si.FileName        = "cmd.exe";
            si.Arguments       = "/C " + command;
            si.CreateNoWindow  = true;
            si.UseShellExecute = false;
            si.WindowStyle     = ProcessWindowStyle.Hidden;
            try
            {
                process.StartInfo = si;
                process.Start();
                process.WaitForExit();
            }
            catch (Exception e)
            {
                SSTUBuildTools.print("Caught exception while running command: " + e.Message);
                SSTUBuildTools.pause();
                Environment.Exit(1);
            }
        }
예제 #2
0
        public void execute()
        {
            int len = config.buildActions.Length;

            for (int i = 0; i < len; i++)
            {
                config.buildActions[i].execute();
                SSTUBuildTools.pause();
            }
        }