Browse Source

Make all name checking case-insensitive.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271682 13f79535-47bb-0310-9956-ffa450edef68
master
adammurdoch 23 years ago
parent
commit
4ab1c363ef
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      proposal/myrmidon/src/java/org/apache/aut/nativelib/Os.java

+ 4
- 4
proposal/myrmidon/src/java/org/apache/aut/nativelib/Os.java View File

@@ -205,7 +205,7 @@ public class Os

/**
* 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 @@ public class Os
boolean isVersion = true;
if( version != null )
{
isVersion = version.equals( OS_VERSION );
isVersion = version.equalsIgnoreCase( OS_VERSION );
}
return isVersion;
}
@@ -285,7 +285,7 @@ public class Os
boolean isArch = true;
if( arch != null )
{
isArch = arch.equals( OS_ARCH );
isArch = arch.equalsIgnoreCase( OS_ARCH );
}
return isArch;
}
@@ -295,7 +295,7 @@ public class Os
boolean isName = true;
if( name != null )
{
isName = name.equals( OS_NAME );
isName = name.equalsIgnoreCase( OS_NAME );
}
return isName;
}


Loading…
Cancel
Save