Changeset 13 for trunk/Forms/UFormConsole.pas
- Timestamp:
- May 30, 2015, 1:02:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormConsole.pas
r8 r13 31 31 Parameters: TStringList; 32 32 WorkingDir: string; 33 Environment : string;33 EnvironmentVariables: TStringList; 34 34 Aborted: Boolean; 35 35 Log: TStringList; … … 50 50 Parameters := TStringList.Create; 51 51 Log := TStringList.Create; 52 EnvironmentVariables := TStringList.Create; 52 53 end; 53 54 54 55 procedure TFormConsole.FormDestroy(Sender: TObject); 55 56 begin 57 EnvironmentVariables.Free; 56 58 Log.Free; 57 59 Parameters.Free; … … 101 103 if WorkingDir <> '' then 102 104 Process.CurrentDirectory := WorkingDir; 103 //WorkingDir := ''; 104 if Environment <> '' then 105 Process.Environment.Text := Environment; 106 Environment := ''; 105 Process.Environment.Assign(EnvironmentVariables); 106 Process.Parameters.Assign(Parameters); 107 107 Process.Executable := Executable; 108 Process.Parameters.Assign(Parameters);109 //for I := 0 to Process.Parameters.Count - 1 do110 // ShowMessage('"' + Process.Parameters[I] + '"');111 //Process.CommandLine := Executable + ' checkout http://svn.zdechov.net/svn/xtactics /home/chronos/Smazat/svn3';112 //Process.Parameters.Clear;113 //Process.Parameters.Add('checkout');114 //Process.Parameters.Add('http://svn.zdechov.net/svn/xtactics');115 //Process.Parameters.Add('/home/chronos/Smazat/svn3');116 //Process.Parameters.Add('checkout');117 //Process.Parameters.Add('dasd');;118 //Process.CommandLine := Executable + ' ' + Parameters.Text;119 108 CommandLine := Executable + ' ' + StringReplace(Parameters.Text, LineEnding, ' ', [rfReplaceAll]); 120 109 if CommandLine[Length(CommandLine)] = LineEnding then
Note:
See TracChangeset
for help on using the changeset viewer.