conor       00/08/01 02:59:40

  Modified:    src/main/org/apache/tools/ant/taskdefs Execute.java
  Log:
  Recognize Windows 2000 for ther purposes of exec (so that it behaves
  in the same manner as NT)
  Submitted by: Robert Watkins <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.3       +2 -1      
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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Execute.java      2000/07/25 12:03:26     1.2
  +++ Execute.java      2000/08/01 09:59:39     1.3
  @@ -120,7 +120,8 @@
               !antWorkingDirectory.equals(workingDirectory.getAbsolutePath())) 
{
   
               if (myos.toLowerCase().indexOf("windows") >= 0 &&
  -                myos.toLowerCase().indexOf("nt") >= 0) {
  +                (myos.toLowerCase().indexOf("nt") >= 0 ||
  +                 myos.indexOf("2000") >= 0)) {
   
                   commandLine = new String[cmdl.length+5];
                   commandLine[0] = "cmd";
  
  
  

Reply via email to