ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Chmod.java
Date Tue, 17 Oct 2000 12:12:45 GMT
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 <sr@adolos.com>
  
  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();
       }
   }
  
  
  

Mime
View raw message