Changeset 264

Show
Ignore:
Timestamp:
02/19/09 04:52:04 (3 years ago)
Author:
keinfarbton
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dwt3.4/current/poseidon/poseidon/controller/actionmanager.d

    r262 r264  
    950950        envSubstitute( newEntry.dir, false ); 
    951951             
    952        FileSystem.setDirectory( newEntry.dir ); 
     952        if( newEntry.dir.length > 0 ) FileSystem.setDirectory( newEntry.dir ); 
    953953             
    954954        sGUI.outputPanel.bringToFront(); 
  • branches/dwt3.4/current/poseidon/poseidon/model/executer.d

    r262 r264  
    8080        Process process = new Process(tango.io.Path.native(cmd) ~ " " ~ args); 
    8181        process.setGui( entry.hideWnd ); 
     82        process.setCopyEnv( true ); 
     83        if( entry.capture ){ 
     84        } 
     85        Util.trace( __FILE__, __LINE__, "args:{}", process.toString() ); 
    8286        if( entry.capture ){ 
    8387            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(); 
    8889            Util.trace( __FILE__, __LINE__, "capture"); 
     90 
     91            assert( process.stdout() !is null ); 
     92            assert( process.stderr()  is null ); 
     93 
    8994            auto lines = new Lines!(char)( process.stdout().input() ); 
    9095            char[] line; 
     
    102107            process.stdout().close(); 
    103108        } 
     109        else{ 
     110            process.execute(); 
     111        } 
    104112        Util.trace( __FILE__, __LINE__, "wait" ); 
    105113        auto result = process.wait();