mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-07 09:05:24 +02:00
PR 50846 Clone the properties class.
This commit is contained in:
parent
fad7ba011f
commit
ee65c0abba
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-01-29 Alain Magloire
|
||||||
|
|
||||||
|
PR 50846 from Alex Chapiro.
|
||||||
|
Clone the return properties class so to not be affected
|
||||||
|
by external changes.
|
||||||
|
|
||||||
|
* utils/org/eclipse/cdt/utils/spawner/EnvironmentReader.java
|
||||||
|
|
||||||
2004-01-21 Anthony Green
|
2004-01-21 Anthony Green
|
||||||
|
|
||||||
PR 50397.
|
PR 50397.
|
||||||
|
|
|
@ -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