mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
PR50846 The Property environment Reader
return to the clients should be clone so they do not affect subsequent results.
This commit is contained in:
parent
9c870f74bf
commit
1e03df8839
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-01-29 Alain Magloire
|
||||||
|
|
||||||
|
PR #50846 and patch from Alex Chapiro
|
||||||
|
|
||||||
|
* utils/org/eclipse/cdt/utils/spawner/EnvironmentReader.java
|
||||||
|
|
||||||
2004-01-26 John Camelon
|
2004-01-26 John Camelon
|
||||||
Updated clients to use new Scanner logging service.
|
Updated clients to use new Scanner logging service.
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class EnvironmentReader {
|
||||||
public static Properties getEnvVars() {
|
public static Properties getEnvVars() {
|
||||||
|
|
||||||
if (null != envVars)
|
if (null != envVars)
|
||||||
return envVars;
|
return (Properties)envVars.clone();
|
||||||
|
|
||||||
String OS = System.getProperty("os.name").toLowerCase();
|
String OS = System.getProperty("os.name").toLowerCase();
|
||||||
Process p = null;
|
Process p = null;
|
||||||
|
@ -74,7 +74,7 @@ public class EnvironmentReader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rawVars.trimToSize();
|
rawVars.trimToSize();
|
||||||
return envVars;
|
return (Properties)envVars.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getEnvVar(String key) {
|
public static String getEnvVar(String key) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue