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-myrmidon/antlib/src/java/org/apache/antlib/core StringToLogLevelConverter.java
Date Wed, 29 May 2002 12:50:27 GMT
adammurdoch    02/05/29 05:50:27

  Modified:    antlib/src/java/org/apache/antlib/core
                        StringToLogLevelConverter.java
  Log:
  Make String -> LogLevel conversion case insensitive.
  
  Revision  Changes    Path
  1.2       +2 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/StringToLogLevelConverter.java
  
  Index: StringToLogLevelConverter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/StringToLogLevelConverter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringToLogLevelConverter.java	24 May 2002 04:02:02 -0000	1.1
  +++ StringToLogLevelConverter.java	29 May 2002 12:50:27 -0000	1.2
  @@ -33,7 +33,8 @@
       public Object convert( final Object object, final Object context )
           throws ConverterException
       {
  -        final LogLevel logLevel = LogLevel.getByName( (String)object );
  +        final String name = (String)object;
  +        final LogLevel logLevel = LogLevel.getByName( name.toLowerCase() );
           if( null != logLevel )
           {
               return logLevel;
  
  
  

--
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