1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +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:
Alain Magloire 2004-01-29 15:22:16 +00:00
parent 9c870f74bf
commit 1e03df8839
2 changed files with 8 additions and 2 deletions

View file

@ -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
Updated clients to use new Scanner logging service.

View file

@ -19,7 +19,7 @@ public class EnvironmentReader {
public static Properties getEnvVars() {
if (null != envVars)
return envVars;
return (Properties)envVars.clone();
String OS = System.getProperty("os.name").toLowerCase();
Process p = null;
@ -74,7 +74,7 @@ public class EnvironmentReader {
}
}
rawVars.trimToSize();
return envVars;
return (Properties)envVars.clone();
}
public static String getEnvVar(String key) {