quoted props 21/65121/1
authorInstrumental <jonathan.gathman@att.com>
Fri, 7 Sep 2018 04:45:04 +0000 (23:45 -0500)
committerInstrumental <jonathan.gathman@att.com>
Fri, 7 Sep 2018 04:45:11 +0000 (23:45 -0500)
Issue-ID: AAF-420
Change-Id: I76f8989ef3499ace13cb93e9ff47493754ab02fc
Signed-off-by: Instrumental <jonathan.gathman@att.com>
cadi/core/src/main/java/org/onap/aaf/cadi/PropAccess.java

index 6a932c4..3d15b09 100644 (file)
@@ -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);
                                }