2024-02-01 10:13:00 +00:00
|
|
|
From 9f4eedf194102b9bcc1fb9885463a47dd3ca9ec8 Mon Sep 17 00:00:00 2001
|
2020-03-25 06:00:47 +00:00
|
|
|
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
|
|
Date: Wed, 25 Mar 2020 06:58:13 +0100
|
|
|
|
Subject: [PATCH] Use PATH env variable instead of JAVA_HOME
|
|
|
|
|
|
|
|
---
|
|
|
|
.../plexus/interpolation/EnvarBasedValueSourceTest.java | 2 +-
|
|
|
|
.../plexus/interpolation/fixed/EnvarBasedValueSourceTest.java | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java b/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java
|
2024-02-01 10:13:00 +00:00
|
|
|
index 8a3c76c..4bcff96 100644
|
2020-03-25 06:00:47 +00:00
|
|
|
--- a/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java
|
|
|
|
+++ b/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java
|
2024-02-01 10:13:00 +00:00
|
|
|
@@ -77,7 +77,7 @@ public class EnvarBasedValueSourceTest {
|
2020-03-25 06:00:47 +00:00
|
|
|
|
|
|
|
EnvarBasedValueSource source = new EnvarBasedValueSource();
|
|
|
|
|
|
|
|
- String realEnvVar = "JAVA_HOME";
|
|
|
|
+ String realEnvVar = "PATH";
|
|
|
|
|
2024-02-01 10:13:00 +00:00
|
|
|
String realValue = System.getenv().get(realEnvVar);
|
|
|
|
assertNotNull(realValue, "Can't run this test until " + realEnvVar + " env variable is set");
|
2020-03-25 06:00:47 +00:00
|
|
|
diff --git a/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java b/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java
|
2024-02-01 10:13:00 +00:00
|
|
|
index b6ff638..42c601c 100644
|
2020-03-25 06:00:47 +00:00
|
|
|
--- a/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java
|
|
|
|
+++ b/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java
|
2024-02-01 10:13:00 +00:00
|
|
|
@@ -77,7 +77,7 @@ public class EnvarBasedValueSourceTest {
|
2020-03-25 06:00:47 +00:00
|
|
|
|
|
|
|
EnvarBasedValueSource source = new EnvarBasedValueSource();
|
|
|
|
|
|
|
|
- String realEnvVar = "JAVA_HOME";
|
|
|
|
+ String realEnvVar = "PATH";
|
|
|
|
|
2024-02-01 10:13:00 +00:00
|
|
|
String realValue = System.getenv().get(realEnvVar);
|
|
|
|
assertNotNull(realValue, "Can't run this test until " + realEnvVar + " env variable is set");
|
2020-03-25 06:00:47 +00:00
|
|
|
--
|
2024-02-01 10:13:00 +00:00
|
|
|
2.41.0
|
2020-03-25 06:00:47 +00:00
|
|
|
|