- Timestamp:
- 02/19/09 04:52:04 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dwt3.4/current/poseidon/poseidon/controller/actionmanager.d
r262 r264 950 950 envSubstitute( newEntry.dir, false ); 951 951 952 FileSystem.setDirectory( newEntry.dir );952 if( newEntry.dir.length > 0 ) FileSystem.setDirectory( newEntry.dir ); 953 953 954 954 sGUI.outputPanel.bringToFront(); branches/dwt3.4/current/poseidon/poseidon/model/executer.d
r262 r264 80 80 Process process = new Process(tango.io.Path.native(cmd) ~ " " ~ args); 81 81 process.setGui( entry.hideWnd ); 82 process.setCopyEnv( true ); 83 if( entry.capture ){ 84 } 85 Util.trace( __FILE__, __LINE__, "args:{}", process.toString() ); 82 86 if( entry.capture ){ 83 87 process.setRedirect( Redirect.Output | Redirect.Error | Redirect.ErrorToOutput ); 84 } 85 Util.trace( __FILE__, __LINE__, "args:{}", process.toString() ); 86 process.execute(); 87 if( entry.capture ){ 88 process.execute(); 88 89 Util.trace( __FILE__, __LINE__, "capture"); 90 91 assert( process.stdout() !is null ); 92 assert( process.stderr() is null ); 93 89 94 auto lines = new Lines!(char)( process.stdout().input() ); 90 95 char[] line; … … 102 107 process.stdout().close(); 103 108 } 109 else{ 110 process.execute(); 111 } 104 112 Util.trace( __FILE__, __LINE__, "wait" ); 105 113 auto result = process.wait();
