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 JUnitTestRunner.java
Date Sun, 30 Dec 2001 01:17:48 GMT
donaldp     01/12/29 17:17:48

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant Project.java
               proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTestRunner.java
  Log:
  Remove Project.toBoolean
  
  Revision  Changes    Path
  1.17      +0 -14     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Project.java	30 Dec 2001 01:14:58 -0000	1.16
  +++ Project.java	30 Dec 2001 01:17:48 -0000	1.17
  @@ -115,20 +115,6 @@
       }
   
       /**
  -     * returns the boolean equivalent of a string, which is considered true if
  -     * either "on", "true", or "yes" is found, ignoring case.
  -     *
  -     * @param s Description of Parameter
  -     * @return Description of the Returned Value
  -     */
  -    public static boolean toBoolean( String s )
  -    {
  -        return ( s.equalsIgnoreCase( "on" ) ||
  -            s.equalsIgnoreCase( "true" ) ||
  -            s.equalsIgnoreCase( "yes" ) );
  -    }
  -
  -    /**
        * get the base directory of the project as a file object
        *
        * @return the base directory. If this is null, then the base dir is not
  
  
  
  1.7       +3 -3      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
  
  Index: JUnitTestRunner.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JUnitTestRunner.java	23 Dec 2001 06:31:58 -0000	1.6
  +++ JUnitTestRunner.java	30 Dec 2001 01:17:48 -0000	1.7
  @@ -361,15 +361,15 @@
           {
               if( args[ i ].startsWith( "haltOnError=" ) )
               {
  -                haltError = Project.toBoolean( args[ i ].substring( 12 ) );
  +                haltError = "true".equals( args[ i ].substring( 12 ) );
               }
               else if( args[ i ].startsWith( "haltOnFailure=" ) )
               {
  -                haltFail = Project.toBoolean( args[ i ].substring( 14 ) );
  +                haltFail = "true".equals( args[ i ].substring( 14 ) );
               }
               else if( args[ i ].startsWith( "filtertrace=" ) )
               {
  -                stackfilter = Project.toBoolean( args[ i ].substring( 12 ) );
  +                stackfilter = "true".equals( args[ i ].substring( 12 ) );
               }
               else if( args[ i ].startsWith( "formatter=" ) )
               {
  
  
  

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