bodewig 00/10/17 05:12:45
Modified: src/main/org/apache/tools/ant/taskdefs Chmod.java
Log:
Make MacOS X a valid Unix (in <chmod>'s point of view).
Submitted by: Stuart Roebuck <[EMAIL PROTECTED]>
Revision Changes Path
1.9 +4 -3
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Chmod.java
Index: Chmod.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Chmod.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Chmod.java 2000/09/07 09:50:54 1.8
+++ Chmod.java 2000/10/17 12:12:44 1.9
@@ -168,8 +168,9 @@
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();
}
}