ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/condition Os.java
Date Sat, 13 Oct 2001 01:57:03 GMT
donaldp     01/10/12 18:57:03

  Modified:    src/main/org/apache/tools/ant/taskdefs/condition Os.java
  Log:
  Check for Os set to netware.
  
  Submitted by: "Jeff Tulley" <JTULLEY@novell.com>
  
  Revision  Changes    Path
  1.2       +3 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/condition/Os.java
  
  Index: Os.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/condition/Os.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Os.java	2001/08/03 16:38:20	1.1
  +++ Os.java	2001/10/13 01:57:03	1.2
  @@ -60,7 +60,7 @@
    * Condition that tests the OS type.
    *
    * @author <a href="mailto:stefan.bodewig@epost.de>Stefan Bodewig</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class Os implements Condition {
       private String family;
  @@ -73,6 +73,8 @@
           if (family != null) {
               if (family.equals("windows")) {
                   return osName.indexOf("windows") > -1;
  +            } else if (family.equals("netware")) {
  +                return osName.indexOf("netware") > -1;
               } else if (family.equals("dos")) {
                   return pathSep.equals(";");
               } else if (family.equals("mac")) {
  
  
  

Mime
View raw message