From 76641fe51496dc751c54fccd02404e1f00cb724b Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 17 Oct 2000 12:12:44 +0000 Subject: [PATCH] Make MacOS X a valid Unix (in 's point of view). Submitted by: Stuart Roebuck git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268100 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Chmod.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Chmod.java b/src/main/org/apache/tools/ant/taskdefs/Chmod.java index 2929ff4ee..b7a6f698e 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Chmod.java +++ b/src/main/org/apache/tools/ant/taskdefs/Chmod.java @@ -168,8 +168,9 @@ public class Chmod extends ExecuteOn { protected boolean isValidOs() { // 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(); } }