Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

respect MVNW_VERBOSE when printing diagnostic stuff#67

Merged
mosabua merged 2 commits intotakari:masterfrom
eprst:master
Oct 26, 2017
Merged

respect MVNW_VERBOSE when printing diagnostic stuff#67
mosabua merged 2 commits intotakari:masterfrom
eprst:master

Conversation

@eprst
Copy link
Copy Markdown

@eprst eprst commented Oct 19, 2017

mvnw shouldn't print anything on the screen unless explicitly asked for, otherwise it breaks scripts that expect no extra output when running mvnw --quiet

* @author <a href="mailto:konstantin.sobolev@gmail.com">Konstantin Sobolev</a>
*/
public class Logger {
private static final boolean VERBOSE = "true".equalsIgnoreCase(MavenWrapperMain.MVNW_VERBOSE);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey,
I'm not completely agree with the suggestion, but just looking the PR, this line seems wrong.
It is referencing a string.
Either here or MavenWrapperMain.MVNW_VEREBOSE needs to check the value from system env.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, my bad, you're right. Updated.

@mosabua mosabua merged commit 02106ac into takari:master Oct 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants