Lines 89-99
Link Here
|
89 |
* Reads the wrappers from the specified System property and populates the specified |
89 |
* Reads the wrappers from the specified System property and populates the specified |
90 |
* map. The map is unchanged if the property is not set. |
90 |
* map. The map is unchanged if the property is not set. |
91 |
* |
91 |
* |
92 |
* @param propertyName The system properties name |
92 |
* @param envVar The system variable name |
93 |
* @param wrapperMap The map which is being updated |
93 |
* @param wrapperMap The map which is being updated |
94 |
*/ |
94 |
*/ |
95 |
public static void readWrappersFromProperty(String propertyName, Map wrapperMap) throws IOException { |
95 |
private static void readWrappersFromProperty(String envVar, Map wrapperMap) throws IOException { |
96 |
String propertyValue = System.getProperty(propertyName); |
96 |
String propertyValue = System.getenv(envVar); |
97 |
if (propertyValue != null) |
97 |
if (propertyValue != null) |
98 |
{ |
98 |
{ |
99 |
parseWrappers(new BufferedReader(new StringReader(propertyValue)), wrapperMap); |
99 |
parseWrappers(new BufferedReader(new StringReader(propertyValue)), wrapperMap); |
Lines 123-129
Link Here
|
123 |
wrapperSource = CommandException.getLocalMessage("WrapperUtils.environmentWrapper.text"); //NOI18N |
123 |
wrapperSource = CommandException.getLocalMessage("WrapperUtils.environmentWrapper.text"); //NOI18N |
124 |
|
124 |
|
125 |
//process the Environment variable CVSWRAPPERS |
125 |
//process the Environment variable CVSWRAPPERS |
126 |
readWrappersFromProperty("Env-CVSWRAPPERS", wrappersMap); //NOI18N |
126 |
readWrappersFromProperty("CVSWRAPPERS", wrappersMap); //NOI18N |
127 |
} |
127 |
} |
128 |
catch (FileNotFoundException fnex) { |
128 |
catch (FileNotFoundException fnex) { |
129 |
// should not happen as we check for file existence. Even if it does |
129 |
// should not happen as we check for file existence. Even if it does |