From fefa29d940b023bbb6cfb13a5d204437814296e7 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 31 Mar 2004 11:45:01 +0000 Subject: [PATCH] ProjectComponent incorrect compare used in logging PR: 28070 Obtained from: Matt Small git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276266 13f79535-47bb-0310-9956-ffa450edef68 --- CONTRIBUTORS | 3 ++- WHATSNEW | 2 ++ src/main/org/apache/tools/ant/ProjectComponent.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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); } }