Esempio n. 1
0
        public static IProcessAsyncOperation Run(string file, IConsole console)
        {
            DebugExecutionHandler h   = new DebugExecutionHandler(null);
            ExecutionCommand      cmd = Runtime.ProcessService.CreateCommand(file);

            return(h.Execute(cmd, console));
        }
		public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
		{
			if (!CanExecute (command))
			    return null;
			DebugExecutionHandler h = new DebugExecutionHandler (null);
			return h.Execute (command, console);
		}
Esempio n. 3
0
        public IProcessAsyncOperation Execute(ExecutionCommand command, IConsole console)
        {
            if (!CanExecute(command))
            {
                return(null);
            }
            DebugExecutionHandler h = new DebugExecutionHandler(null);

            return(h.Execute(command, console));
        }
        public static IProcessAsyncOperation Run(string file, string args, string workingDir, IDictionary <string, string> envVars, IConsole console)
        {
            var h   = new DebugExecutionHandler(null);
            var cmd = Runtime.ProcessService.CreateCommand(file);

            if (args != null)
            {
                cmd.Arguments = args;
            }
            if (workingDir != null)
            {
                cmd.WorkingDirectory = workingDir;
            }
            if (envVars != null)
            {
                cmd.EnvironmentVariables = envVars;
            }

            return(h.Execute(cmd, console));
        }
Esempio n. 5
0
		public IProcessAsyncOperation Execute (ExecutionCommand command, IConsole console)
		{
			DebugExecutionHandler h = new DebugExecutionHandler (engine);
			return h.Execute (command, console);
		}
Esempio n. 6
0
		public static IProcessAsyncOperation Run (string file, IConsole console)
		{
			DebugExecutionHandler h = new DebugExecutionHandler (null);
			ExecutionCommand cmd = Runtime.ProcessService.CreateCommand (file);
			return h.Execute (cmd, console);
		}
Esempio n. 7
0
        public IProcessAsyncOperation Execute(ExecutionCommand command, IConsole console)
        {
            DebugExecutionHandler h = new DebugExecutionHandler(engine);

            return(h.Execute(command, console));
        }