diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java index 60ea5248c..21e47050c 100644 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java +++ b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java @@ -761,10 +761,11 @@ public class JUnitTask extends Task 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 ); } } diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java index 60ea5248c..21e47050c 100644 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java +++ b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java @@ -761,10 +761,11 @@ public class JUnitTask extends Task 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 ); } }