Browse Source

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
master
Peter Reilly 21 years ago
parent
commit
fefa29d940
3 changed files with 5 additions and 2 deletions
  1. +2
    -1
      CONTRIBUTORS
  2. +2
    -0
      WHATSNEW
  3. +1
    -1
      src/main/org/apache/tools/ant/ProjectComponent.java

+ 2
- 1
CONTRIBUTORS View File

@@ -115,10 +115,11 @@ Matt Albrecht
Matt Benson Matt Benson
Matt Bishop Matt Bishop
Matt Foemmel Matt Foemmel
Matt Humphrey
Matt Small
Matthew Inger Matthew Inger
Matthew Kuperus Heun Matthew Kuperus Heun
Matthew Watson Matthew Watson
Matt Humphrey
Michael Davey Michael Davey
Michael J. Sikorsky Michael J. Sikorsky
Michael McCallum Michael McCallum


+ 2
- 0
WHATSNEW View File

@@ -95,6 +95,8 @@ Fixed bugs:


* filterset used by filtertask doesn't respect loglevel. Bugzilla Report 27568. * filterset used by filtertask doesn't respect loglevel. Bugzilla Report 27568.


* wrong compare used in ProjectComponent for logging. Bugzilla Report 28070.

Other changes: Other changes:
-------------- --------------




+ 1
- 1
src/main/org/apache/tools/ant/ProjectComponent.java View File

@@ -81,7 +81,7 @@ public abstract class ProjectComponent {
// 'reasonable' default, if the component is used without // 'reasonable' default, if the component is used without
// a Project ( for example as a standalone Bean ). // a Project ( for example as a standalone Bean ).
// Most ant components can be used this way. // Most ant components can be used this way.
if (msgLevel >= Project.MSG_INFO) {
if (msgLevel <= Project.MSG_INFO) {
System.err.println(msg); System.err.println(msg);
} }
} }


Loading…
Cancel
Save