ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17471] New: - -projecthelp does not work with -quiet
Date Thu, 27 Feb 2003 10:08:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17471>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17471

-projecthelp does not work with -quiet

           Summary: -projecthelp does not work with -quiet
           Product: Ant
           Version: 1.5.2Beta1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: loic.peron@bigfoot.com
                CC: loic.peron@bigfoot.com


When invoked using -projecthelp -quiet, ant does not show anything.
This seems like a bug, as using -projecthelp is to get some info.

The source of this behaviour is in the use of project.log(String)
inside the -projecthelp execution, which defaults to MSG_INFO level.
When -quiet is used, MSG_INFO messages are simply not shown.

To achieve the desired effect, project.log(String, msgOutputLevel)
should be used, msgOutputLevel being the instance variable in Main
which is used to filter out messages, thus always displaying info.

The different methods employed for -projecthelp handling being static,
one of two things must be done:
. promote these methods to instance methods
. pass msgOutputLevel as an argument to these methods

I did try both, and both function, but the first one is much less
intrusive to the code, as can be seen in the provided patches. In
either case, the changes are really minor an shoud not have any side
effect.

Mime
View raw message