Esempio n. 1
0
 public SyncCommandLineOperation(CommandLine command, CommandLine.ExecutionFinishedHandler finishHandler) : base(command, finishHandler)
 {
 }
Esempio n. 2
0
        public static CommandLineOperation CreateSVNAction(string action, bool asynchronous, IEnumerable <string> assets, CommandLine.ExecutionFinishedHandler finishedHandler)
        {
            string workingDirectory = Application.dataPath + "\\..\\";
            string arguments        = action;

            if (assets.Count() > 0)
            {
                arguments += " \"" + assets.Aggregate((i, j) => i + "\" \"" + j) + "\"";
            }
            CommandLineOperation operation;

            if (asynchronous)
            {
                operation = new AsyncCommandLineOperation(new CommandLine("svn", "--non-interactive " + arguments, workingDirectory), finishedHandler);
            }
            else
            {
                operation = new SyncCommandLineOperation(new CommandLine("svn", "--non-interactive " + arguments, workingDirectory), finishedHandler);
            }

            return(operation);
        }
Esempio n. 3
0
 protected CommandLineOperation(CommandLine command, CommandLine.ExecutionFinishedHandler finishHandler)
 {
     this.command = command;
     this.command.ExecutionFinished += finishHandler;
 }