This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-wrapper.git


The following commit(s) were added to refs/heads/master by this push:
     new 5eb7efe  use provided constant instead of copied value
5eb7efe is described below

commit 5eb7efe45cb5979da8dc19f418db7deda0b7a24e
Author: HervĂ© Boutemy <[email protected]>
AuthorDate: Sat Dec 11 09:54:44 2021 +0100

    use provided constant instead of copied value
---
 .../src/main/java/org/apache/maven/wrapper/DefaultDownloader.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/maven-wrapper/src/main/java/org/apache/maven/wrapper/DefaultDownloader.java 
b/maven-wrapper/src/main/java/org/apache/maven/wrapper/DefaultDownloader.java
index 69483d1..91ed2b1 100644
--- 
a/maven-wrapper/src/main/java/org/apache/maven/wrapper/DefaultDownloader.java
+++ 
b/maven-wrapper/src/main/java/org/apache/maven/wrapper/DefaultDownloader.java
@@ -67,15 +67,15 @@ public class DefaultDownloader
 
     private void configureAuthentication()
     {
-        if ( System.getenv( "MVNW_USERNAME" ) != null && System.getenv( 
"MVNW_PASSWORD" ) != null
+        if ( System.getenv( MVNW_USERNAME ) != null && System.getenv( 
MVNW_PASSWORD ) != null
             && System.getProperty( "http.proxyUser" ) == null )
         {
             Authenticator.setDefault( new Authenticator()
             {
                 protected PasswordAuthentication getPasswordAuthentication()
                 {
-                    return new PasswordAuthentication( System.getenv( 
"MVNW_USERNAME" ),
-                                                       System.getenv( 
"MVNW_PASSWORD" ).toCharArray() );
+                    return new PasswordAuthentication( System.getenv( 
MVNW_USERNAME ),
+                                                       System.getenv( 
MVNW_PASSWORD ).toCharArray() );
                 }
             } );
         }

Reply via email to