Fix NPE due to missing MVNW_VERBOSE

This commit is contained in:
Tadaya Tsuyukubo 2017-09-12 14:26:27 -07:00 committed by rfscholte
parent fb82a01e70
commit b77616c591
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class MavenWrapperMain {
public static final String MVNW_VERBOSE = "MVNW_VERBOSE";
public static void main(String[] args) throws Exception {
Boolean verbose = System.getenv(MVNW_VERBOSE).equalsIgnoreCase("true");
boolean verbose = "true".equalsIgnoreCase(System.getenv(MVNW_VERBOSE));
File wrapperJar = wrapperJar();
File propertiesFile = wrapperProperties(wrapperJar);