diff options
author | 2018-09-07 04:52:22 +0000 | |
---|---|---|
committer | 2018-09-07 04:52:22 +0000 | |
commit | 10f3375fef68fdcb935290d2e193a84f3cf572d5 (patch) | |
tree | e9d31046326ac5db26a75c4f99da4336f7b3b3df | |
parent | fabea8ab72d3964df9c424acd1c5a90f876a2786 (diff) | |
parent | 89c662c2a7c50eb533256497de0420ba1176fe13 (diff) |
Merge "quoted props"
-rw-r--r-- | cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java b/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java index 6a932c41..3d15b09d 100644 --- a/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java +++ b/cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java @@ -209,6 +209,11 @@ public class PropAccess implements Access { Object value = es.getValue(); if(value instanceof String) { String trim = ((String)value).trim(); + // Remove Beginning/End Quotes, which might be there if mixed with Bash Props + int s = 0, e=trim.length()-1; + if(s<e && trim.charAt(s)=='"' && trim.charAt(e)=='"') { + trim=trim.substring(s+1,e); + } if(trim!=value) { // Yes, I want OBJECT equals props.setProperty((String)es.getKey(), trim); } |