This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git
The following commit(s) were added to refs/heads/master by this push:
new c4aaed69 Fix interpolation of environment variables in config
properties (fixes #693) (#866)
c4aaed69 is described below
commit c4aaed6909120bf7ab0cf2dcc013c8fa0cb6fb9b
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Jul 3 17:36:32 2023 +0200
Fix interpolation of environment variables in config properties (fixes
#693) (#866)
---
client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java
b/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java
index d09dc720..c0230f89 100644
--- a/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java
+++ b/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java
@@ -490,7 +490,7 @@ public class DaemonParameters {
result.load(in);
Properties sysProps = new Properties();
sysProps.putAll(System.getProperties());
- System.getenv().forEach((k, v) -> sysProps.put(k, ENV_PREFIX +
v));
+ System.getenv().forEach((k, v) -> sysProps.put(ENV_PREFIX + k,
v));
InterpolationHelper.performSubstitution(result,
sysProps::getProperty, true, true);
} catch (IOException e) {
throw new RuntimeException("Could not read " + path);