ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Execute.java
Date Mon, 18 Sep 2000 09:01:54 GMT
bodewig     00/09/18 02:01:54

  Modified:    src/main/org/apache/tools/ant/taskdefs Execute.java
  Log:
  Treat OS/2 like Win NT with regard to <exec>'s dir attribute.
  PR: #126 (Bug #33)
  
  Revision  Changes    Path
  1.7       +7 -4      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Execute.java
  
  Index: Execute.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Execute.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Execute.java	2000/08/09 09:22:12	1.6
  +++ Execute.java	2000/09/18 09:01:53	1.7
  @@ -265,10 +265,13 @@
   	    } finally {
                   System.getProperties().put("user.dir", antWorkingDirectory);
   	    }
  -	} else if (myos.toLowerCase().indexOf("windows") >= 0 &&
  -		   (myos.toLowerCase().indexOf("nt") >= 0 ||
  -		    myos.indexOf("2000") >= 0)) {
  -	    // cmd /c cd works OK on Windows NT & friends.
  +	} else if ((myos.toLowerCase().indexOf("windows") >= 0 &&
  +                       (myos.toLowerCase().indexOf("nt") >= 0 ||
  +                        myos.indexOf("2000") >= 0))
  +                      // cmd /c cd works OK on Windows NT & friends.
  +                   || myos.toLowerCase().indexOf("os/2") >= 0
  +                      // as well as on OS/2
  +                   ) {
   	    String[] commandLine = new String[cmdl.length+5];
   	    commandLine[0] = "cmd";
   	    commandLine[1] = "/c";
  
  
  

Mime
View raw message