Retrieve System properties via variables
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 4 Nov 2012 16:08:01 +0000 (16:08 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 4 Nov 2012 16:08:01 +0000 (16:08 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5695 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/MapExecutionContext.java

index 74764ab23ccaa93df6c3916c2829a7d7d0f240b8..39a0522744377d93ba9d08fb690e3a7f3b317853 100644 (file)
@@ -80,7 +80,11 @@ public class MapExecutionContext implements ExecutionContext,
                        }
                }
 
-               return variables.get(key);
+               Object value = variables.get(key);
+               // try system property in last resort
+               if (value == null)
+                       value = System.getProperty(key);
+               return value;
        }
 
        public String getUuid() {