ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib Os.java
Date Sun, 03 Mar 2002 02:12:13 GMT
adammurdoch    02/03/02 18:12:13

  Modified:    proposal/myrmidon/src/java/org/apache/aut/nativelib Os.java
  Log:
  Make all name checking case-insensitive.
  
  Revision  Changes    Path
  1.4       +4 -4      jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/Os.java
  
  Index: Os.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/Os.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Os.java	2 Mar 2002 04:03:36 -0000	1.3
  +++ Os.java	3 Mar 2002 02:12:13 -0000	1.4
  @@ -205,7 +205,7 @@
   
       /**
        * Determines if the OS on which Ant is executing matches the given OS
  -     * family, name, architecture and version
  +     * family, name, architecture and version.
        *
        * @param family The OS family
        * @param name The OS name
  @@ -275,7 +275,7 @@
           boolean isVersion = true;
           if( version != null )
           {
  -            isVersion = version.equals( OS_VERSION );
  +            isVersion = version.equalsIgnoreCase( OS_VERSION );
           }
           return isVersion;
       }
  @@ -285,7 +285,7 @@
           boolean isArch = true;
           if( arch != null )
           {
  -            isArch = arch.equals( OS_ARCH );
  +            isArch = arch.equalsIgnoreCase( OS_ARCH );
           }
           return isArch;
       }
  @@ -295,7 +295,7 @@
           boolean isName = true;
           if( name != null )
           {
  -            isName = name.equals( OS_NAME );
  +            isName = name.equalsIgnoreCase( OS_NAME );
           }
           return isName;
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message