diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-09-06 23:45:04 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-09-06 23:45:11 -0500 |
commit | 89c662c2a7c50eb533256497de0420ba1176fe13 (patch) | |
tree | 137578e79e8ab81ca43bf3699dfdea2db5321454 | |
parent | 8206227ce04d26834a0023b4497d6b2ad67e906b (diff) |
quoted props
Issue-ID: AAF-420
Change-Id: I76f8989ef3499ace13cb93e9ff47493754ab02fc
Signed-off-by: Instrumental <jonathan.gathman@att.com>
-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); } |