ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: [PATCH] [17471] -projecthelp does not work with -quiet
Date Fri, 07 Mar 2003 17:26:21 GMT
Well, we need to be sure it needs fixing :)

This may sound silly but -projecthelp -verbose is more informative than the
default listing, so the quiet listing should be less informative. The issue
is how much less informative

----- Original Message -----
From: "Loïc Péron" <loic.peron@bigfoot.com>
To: <dev@ant.apache.org>
Cc: "Loïc Péron" <loic.peron@bigfoot.com>
Sent: Friday, March 07, 2003 05:36
Subject: [PATCH] [17471] -projecthelp does not work with -quiet


>
> Hi all,
>
> As stated in http://issues.apache.org/bugzilla/show_bug.cgi?id=17471
>
> -- quote bug 17471
>
> 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.
>
> -- end quote
>
> Would it be possible to address this little point in the next release?
>
> Thanks.
>
> --
> Loïc Péron
>
> phone:(33) 683 880 177
> mailto:loic.peron@bigfoot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>


Mime
View raw message