Browse Source

Make MacOS X a valid Unix (in <chmod>'s point of view).

Submitted by:	Stuart Roebuck <sr@adolos.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268100 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
76641fe514
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/main/org/apache/tools/ant/taskdefs/Chmod.java

+ 4
- 3
src/main/org/apache/tools/ant/taskdefs/Chmod.java View File

@@ -168,8 +168,9 @@ public class Chmod extends ExecuteOn {


protected boolean isValidOs() { protected boolean isValidOs() {
// XXX if OS=unix // XXX if OS=unix
return System.getProperty("path.separator").equals(":") &&
!System.getProperty("os.name").startsWith("Mac") &&
super.isValidOs();
return System.getProperty("path.separator").equals(":")
&& (!System.getProperty("os.name").startsWith("Mac")
|| System.getProperty("os.name").endsWith("X"))
&& super.isValidOs();
} }
} }

Loading…
Cancel
Save