Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Novice
Description
We should upper-case env var text before looking it up in System.getenv as ENV vars are upper-case.
Today you have to do
.setBody().simple("${sysenv.FALLBACK}")
But you may type
.setBody().simple("${sysenv.fallback}")
To lookup an ENV with key FALLBACK
This can be implemented in the org.apache.camel.builder.ExpressionBuilder#systemEnvironmentExpression(java.lang.String, java.lang.String)
Contributions is welcome