[ 
https://issues.apache.org/jira/browse/MBUILDCACHE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696442#comment-17696442
 ] 

ASF GitHub Bot commented on MBUILDCACHE-46:
-------------------------------------------

michael-o commented on code in PR #43:
URL: 
https://github.com/apache/maven-build-cache-extension/pull/43#discussion_r1125469659


##########
src/main/java/org/apache/maven/buildcache/xml/CacheConfigImpl.java:
##########
@@ -597,4 +597,15 @@ private String getProperty(String key, String 
defaultValue) {
         }
         return value;
     }
+
+    private boolean getProperty(String key, boolean defaultValue) {
+        String value = session.getUserProperties().getProperty(key);
+        if (value == null) {
+            value = session.getSystemProperties().getProperty(key);
+            if (value == null) {
+                return defaultValue;
+            }
+        }
+        return Boolean.parseBoolean(value);

Review Comment:
   I think with system properties this is redundant, no?





> Add maven.build.cache.remote.enabled parameter
> ----------------------------------------------
>
>                 Key: MBUILDCACHE-46
>                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-46
>             Project: Maven Build Cache Extension
>          Issue Type: Improvement
>            Reporter: Olivier Lamy
>            Assignee: Olivier Lamy
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.1
>
>
> PR https://github.com/apache/maven-build-cache-extension/pull/43



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to