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

respect MVNW_VERBOSE when printing diagnostic stuff #67

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

eprst
Copy link

@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

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
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.

None yet

3 participants