From c459298bf9646fb281c4ee2f6de019c44368f57d Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Thu, 11 May 2023 22:27:28 -0400 Subject: [PATCH] Tweaks to Wrapper --- src/main/java/rife/bld/wrapper/Wrapper.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/rife/bld/wrapper/Wrapper.java b/src/main/java/rife/bld/wrapper/Wrapper.java index a9f2f51..6380dd4 100644 --- a/src/main/java/rife/bld/wrapper/Wrapper.java +++ b/src/main/java/rife/bld/wrapper/Wrapper.java @@ -300,9 +300,6 @@ public class Wrapper { // ensure required properties are available wrapperProperties_.put(PROPERTY_REPOSITORIES, MAVEN_CENTRAL); wrapperProperties_.put(BLD_PROPERTY_VERSION, version); - if (wrapperProperties_.getProperty(DOWNLOAD_LOCATION) == null) { - wrapperProperties_.put(BLD_PROPERTY_DOWNLOAD_LOCATION, DOWNLOAD_LOCATION); - } // retrieve properties from possible locations var config = libBldDirectory(WRAPPER_PROPERTIES); @@ -357,7 +354,7 @@ public class Wrapper { default_location = DOWNLOAD_LOCATION_SNAPSHOT; } var location = wrapperProperties_.getProperty(BLD_PROPERTY_DOWNLOAD_LOCATION, default_location); - if (location.trim().isBlank()) { + if (location == null || location.trim().isBlank()) { location = default_location; } return replaceVersion(location, version);