Repository: incubator-apex-core Updated Branches: refs/heads/devel-3 55a068fd1 -> bff4c5bad
APEX-89 #resolve escape configuration property name because it can contain characters that need to be escaped Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/commit/48515eb3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/tree/48515eb3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/diff/48515eb3 Branch: refs/heads/devel-3 Commit: 48515eb337701fac74c25a6b5172b71f5da80771 Parents: 55a068f Author: David Yan <[email protected]> Authored: Thu Sep 3 10:33:19 2015 -0700 Committer: David Yan <[email protected]> Committed: Thu Sep 3 10:33:19 2015 -0700 ---------------------------------------------------------------------- .../main/java/com/datatorrent/stram/client/StramClientUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/48515eb3/engine/src/main/java/com/datatorrent/stram/client/StramClientUtils.java ---------------------------------------------------------------------- diff --git a/engine/src/main/java/com/datatorrent/stram/client/StramClientUtils.java b/engine/src/main/java/com/datatorrent/stram/client/StramClientUtils.java index d21f03d..d596a73 100644 --- a/engine/src/main/java/com/datatorrent/stram/client/StramClientUtils.java +++ b/engine/src/main/java/com/datatorrent/stram/client/StramClientUtils.java @@ -642,7 +642,7 @@ public class StramClientUtils context.evaluateString(scope, "var _prop = {}", "EvalLaunchProperties", 0, null); for (Map.Entry<String, String> entry : vars) { LOG.info("Evaluating: {}", "_prop[\"" + entry.getKey() + "\"] = " + entry.getValue()); - context.evaluateString(scope, "_prop[\"" + entry.getKey() + "\"] = \"" + StringEscapeUtils.escapeJava(entry.getValue()) + "\"", "EvalLaunchProperties", 0, null); + context.evaluateString(scope, "_prop[\"" + StringEscapeUtils.escapeJava(entry.getKey()) + "\"] = \"" + StringEscapeUtils.escapeJava(entry.getValue()) + "\"", "EvalLaunchProperties", 0, null); } for (Map.Entry<Object, Object> entry : target.entrySet()) {
