fix to actually read the environment variable value

This commit is contained in:
Konstantin Sobolev 2017-10-19 11:19:38 -07:00 committed by rfscholte
parent 68e102a63c
commit 18e3d3ea0d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ package org.apache.maven.wrapper;
* @author <a href="mailto:konstantin.sobolev@gmail.com">Konstantin Sobolev</a>
*/
public class Logger {
private static final boolean VERBOSE = "true".equalsIgnoreCase(MavenWrapperMain.MVNW_VERBOSE);
private static final boolean VERBOSE = "true".equalsIgnoreCase(System.getenv(MavenWrapperMain.MVNW_VERBOSE));
public static void info(String msg) {
if (VERBOSE) {