You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/12/30 02:17:48 UTC

cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTestRunner.java

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>