[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [buckminster-dev] Property Expansion for Environment Variables

Hi again,

I was having a look at the sources and was wondering what's the right place to add these environment variables.
Would the static initializer of the RMContext be sufficient? It creates the staticAdditions for the globalPropertyAdditions.
I was thinking of adding something like this to the initializer:
Map<String, String> env = System.getenv();
for (Entry<String, String> environmentVariable : env.entrySet()) {
additions.put("env_var:" + environmentVariable.getKey(), environmentVariable.getValue()); //$NON-NLS-1$
}


Would that be the right place and right way to enable environment variables for script files?

Best regards,
Johannes