...
Environment variables
If you want a grouper properties config file to be pulled from an environment variable, do this:
...
have an env var, you can have any property be an env var... just configure it in a config file as (for property a.b.c):
|
That will cause the property "somethingWhatever" to have the value "c:\dev_inst\java" or whatever it is set to. Do the following two things:
- append .elConfig to the propertyName
- this is the value: ${java.lang.System.getenv().get(
elUtils.processEnvVarOrFile
('JAVA_HOME')} - note, if the value of the env var is a variable, it will get it from there
Example:
When I have this in grouper.properties:
...