git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270444 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -114,20 +114,6 @@ public class Project | |||||
| return super.getLogger(); | return super.getLogger(); | ||||
| } | } | ||||
| /** | |||||
| * 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 | * get the base directory of the project as a file object | ||||
| * | * | ||||
| @@ -361,15 +361,15 @@ public class JUnitTestRunner implements TestListener | |||||
| { | { | ||||
| if( args[ i ].startsWith( "haltOnError=" ) ) | 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=" ) ) | 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=" ) ) | 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=" ) ) | else if( args[ i ].startsWith( "formatter=" ) ) | ||||
| { | { | ||||
| @@ -114,20 +114,6 @@ public class Project | |||||
| return super.getLogger(); | return super.getLogger(); | ||||
| } | } | ||||
| /** | |||||
| * 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 | * get the base directory of the project as a file object | ||||
| * | * | ||||
| @@ -361,15 +361,15 @@ public class JUnitTestRunner implements TestListener | |||||
| { | { | ||||
| if( args[ i ].startsWith( "haltOnError=" ) ) | 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=" ) ) | 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=" ) ) | 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=" ) ) | else if( args[ i ].startsWith( "formatter=" ) ) | ||||
| { | { | ||||