gnodet commented on PR #1603:
URL: https://github.com/apache/maven/pull/1603#issuecomment-2220656788

   > @gnodet Moreover, this is a regression from 3.9.6. Who knows, maybe more 
plugins are affected by this.
   
   Ah, I see now.
   We're trying to chase down the calls to `System.getProperty`, so can we 
rather use the following instead:
   ```
           String actualOsName = 
context.getSystemProperties().getOrDefault("os.name", 
Os.OS_NAME).toLowerCase(Locale.ENGLISH);
           String actualOsArch = 
context.getSystemProperties().getOrDefault("os.arch", 
Os.OS_ARCH).toLowerCase(Locale.ENGLISH);
           String actualOsVersion = 
context.getSystemProperties().getOrDefault("os.version", 
Os.OS_VERSION).toLowerCase(Locale.ENGLISH);
   ```
   It should have the desired behaviour without introducing new calls.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to