diff --git a/CONTRIBUTORS b/CONTRIBUTORS index aca7b5e3d..2601ca488 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -115,10 +115,11 @@ Matt Albrecht Matt Benson Matt Bishop Matt Foemmel +Matt Humphrey +Matt Small Matthew Inger Matthew Kuperus Heun Matthew Watson -Matt Humphrey Michael Davey Michael J. Sikorsky Michael McCallum diff --git a/WHATSNEW b/WHATSNEW index 26cbb4eb2..d5a882dd1 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -95,6 +95,8 @@ Fixed bugs: * filterset used by filtertask doesn't respect loglevel. Bugzilla Report 27568. +* wrong compare used in ProjectComponent for logging. Bugzilla Report 28070. + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/ProjectComponent.java b/src/main/org/apache/tools/ant/ProjectComponent.java index 09f12c837..ba5a3c9b2 100644 --- a/src/main/org/apache/tools/ant/ProjectComponent.java +++ b/src/main/org/apache/tools/ant/ProjectComponent.java @@ -81,7 +81,7 @@ public abstract class ProjectComponent { // 'reasonable' default, if the component is used without // a Project ( for example as a standalone Bean ). // Most ant components can be used this way. - if (msgLevel >= Project.MSG_INFO) { + if (msgLevel <= Project.MSG_INFO) { System.err.println(msg); } }