Browse Source

Recognize Windows 2000 for ther purposes of exec (so that it behaves

in the same manner as NT)
Submitted by:	Robert Watkins <robert.watkins@mincom.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267860 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 25 years ago
parent
commit
0b389735d0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/Execute.java

+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/Execute.java View File

@@ -120,7 +120,8 @@ public class Execute {
!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";


Loading…
Cancel
Save