felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: [SCR] Metatype of default values with commas
Date Fri, 07 Mar 2014 06:35:23 GMT
Hi,

I think you're hitting FELIX-4441 - I don't think there is an easy
workaround except using latest version from trunk.

I'm about to cut a new release soon, hopefully early next week

Carsten


2014-03-07 2:00 GMT+01:00 Tobias Bocanegra <tripod@apache.org>:

> Hi,
>
> I'm struggling to create the correct metatype for a default value with
> a "comma", using the SCR maven plugin.
>
> If I define the property like:
>
>     @Property(
>             label = "Group base DN",
>             value = "ou=groups,o=example,dc=com"
>     )
>     public static final String PARAM_GROUP_BASE_DN = "group.baseDN";
>
> the plugin generates:
>
> <AD id="group.baseDN" type="String"
> default="ou=groups\\,o=example\\,dc=com" name="Group base DN"/>
>
> and opening the configuration in the felix console just shows:
> "ou=groups\".
>
> if I modify the XML to:
> <AD id="group.baseDN" type="String"
> default="ou=groups\,o=example\,dc=com" name="Group base DN"/>
>
> the console shows the correct default value. I tried various
> combinations to trick the SCR plugin - but without success.
>
> any ideas?
> regards, toby
>



-- 
Carsten Ziegeler
cziegeler@apache.org

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