tn5250j/src/org/tn5250j/tools/system OperatingSystem.java,1.9,1.10

"Kenneth J. Pouncey" <[email protected]> Wed, 15 Jun 2005 05:04:49 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools/system
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23216/src/org/tn5250j/tools/system

Modified Files:
	OperatingSystem.java 
Log Message:
Took out the command waitFor for executed programs for external browsers

Index: OperatingSystem.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools/system/OperatingSystem.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** OperatingSystem.java	14 Jun 2005 06:06:57 -0000	1.9
--- OperatingSystem.java	15 Jun 2005 05:04:46 -0000	1.10
***************
*** 269,283 ****
  
        try {
           Process p = Runtime.getRuntime().exec(command);
           // wait for exit code -- if it's 0, command worked,
!          exitCode = p.waitFor();
!          if (exitCode != 0) {
!             log.warn("Error processing command, command='" + command + "'");
!          }
!       }
!       catch (InterruptedException exc) {
!          log.warn("Error processing command, command='" + command + "'");
!          log.warn("Caught: " + exc.getMessage());
        }
        catch (IOException ioe) {
           log.warn("Error processing command, command='" + command + "'");
--- 269,286 ----
  
        try {
+          log.info("Executing command='" + command + "'");
+ 
           Process p = Runtime.getRuntime().exec(command);
+          exitCode = 0;
           // wait for exit code -- if it's 0, command worked,
! //         exitCode = p.waitFor();
! //         if (exitCode != 0) {
! //            log.warn("Error processing command, command='" + command + "'");
! //         }
        }
+ //      catch (InterruptedException exc) {
+ //         log.warn("Error processing command, command='" + command + "'");
+ //         log.warn("Caught: " + exc.getMessage());
+ //      }
        catch (IOException ioe) {
           log.warn("Error processing command, command='" + command + "'");



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click