Skip to content

Commit 2496209

Browse files
author
jantje
committed
Added method to read from the configuration the old sloeber way
1 parent add5070 commit 2496209

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

io.sloeber.core/src/io/sloeber/core/common/Common.java

+13
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,19 @@ public static String makeEnvironmentVar(String variableName) {
228228
return "${" + variableName + '}'; //$NON-NLS-1$
229229
}
230230

231+
/**
232+
* read a environment variable in the way it was stored in older Sloeber
233+
* versions That is as a environment variable both with upper case and lowercase
234+
* key
235+
*
236+
* @param confDesc
237+
* @param envName
238+
* @return
239+
*/
240+
static public String getOldWayEnvVar(ICConfigurationDescription confDesc, String envName) {
241+
return getBuildEnvironmentVariable(confDesc, envName,
242+
getBuildEnvironmentVariable(confDesc, envName.toUpperCase(), EMPTY, false), false);
243+
}
231244

232245

233246
}

0 commit comments

Comments
 (0)