You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/07/27 13:46:43 UTC

[maven-integration-testing] 01/01: Prefer System Properties over Environment Variables

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

rfscholte pushed a commit to branch MNG-6714
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit 899759d67b7150b84abf39c87f0e41b1214c9a6b
Author: rfscholte <rf...@apache.org>
AuthorDate: Sat Jul 27 15:46:33 2019 +0200

    Prefer System Properties over Environment Variables
---
 .../apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java
index db5e62d..4bb22d0 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java
@@ -227,11 +227,11 @@ public class MavenITmng0553SettingsAuthzEncryptionTest
         String path = home.getAbsolutePath();
         if ( path.indexOf( ' ' ) < 0 )
         {
-            verifier.setEnvironmentVariable( "MAVEN_OPTS", "-Duser.home=" + path );
+            verifier.setSystemProperty( "user.home", path );
         }
         else
         {
-            verifier.setEnvironmentVariable( "MAVEN_OPTS", "\"-Duser.home=" + path + "\"" );
+            verifier.setSystemProperty( "user.home", "\"" + path + "\"" );
         }
     }