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/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java
Date Sun, 13 Jan 2002 05:37:01 GMT
donaldp     02/01/12 21:37:01

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTask.java
  Log:
  Use accessor to get Value from EnumeratedAttribute
  
  Revision  Changes    Path
  1.24      +5 -4      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
  
  Index: JUnitTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- JUnitTask.java	13 Jan 2002 00:02:48 -0000	1.23
  +++ JUnitTask.java	13 Jan 2002 05:37:01 -0000	1.24
  @@ -761,10 +761,11 @@
   
           public boolean asBoolean()
           {
  -            return "true".equals( value )
  -                || "on".equals( value )
  -                || "yes".equals( value )
  -                || "withOutAndErr".equals( value );
  +            final String value = getValue();
  +            return "true".equals( value ) ||
  +                "on".equals( value ) ||
  +                "yes".equals( value ) ||
  +                "withOutAndErr".equals( value );
           }
       }
   
  
  
  

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