celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Broekhuis <a.broekh...@gmail.com>
Subject Re: [jira] [Updated] (CELIX-94) extend properties support for escaping equals sign
Date Tue, 03 Dec 2013 08:40:46 GMT
Thx for the patch, seems useful to apply.

But as it is now the properties_store counterpart is incorrect, could you
support escaped characters there as well?

How difficult would it be to support all escaped chars of the Java
Properties implementation? See [1].

[1]:
http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html#load(java.io.Reader)


2013/11/29 Bjoern Petri (JIRA) <jira@apache.org>

>
>      [
> https://issues.apache.org/jira/browse/CELIX-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Bjoern Petri updated CELIX-94:
> ------------------------------
>
>     Attachment: propertiesEscapeSupport.patch
>
> > extend properties support for escaping equals sign
> > --------------------------------------------------
> >
> >                 Key: CELIX-94
> >                 URL: https://issues.apache.org/jira/browse/CELIX-94
> >             Project: Celix
> >          Issue Type: Improvement
> >            Reporter: Bjoern Petri
> >            Priority: Minor
> >         Attachments: propertiesEscapeSupport.patch
> >
> >
> > I would like to be able to have equal signs, within properties which I
> want to load via the properties_load function.
> > Therefore, I changed the code, so that equals sign in the key itself can
> be expressed by "a\=b=c". Internally the key will be a=b (so I get rid of
> the escape sign).
> > See code/test case  of attached patch.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.1#6144)
>



-- 
Met vriendelijke groet,

Alexander Broekhuis

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message