Ooops, sorry I forgot to escape XML entities (ampersands and quotes) in
previous example, it should have read:

<bundle>wrap:mvn:jboss/jbossall-client/${version.jboss}/$Bundle-SymbolicName=jbossall-client&amp;Bundle-Version=${version.jboss}&amp;Export-Package=org.jboss.remoting;version=&quot;${version.jboss}&quot;,!*</bundle>

or
        <bundle><![CDATA[
        wrap:mvn:jboss/jbossall-client/
4.2.3.GA/$Bundle-SymbolicName=jbossall-client&Bundle-Version=4.2.3.GA&Export-Package=org.jboss.remoting;version=
"4.2.3.GA",!*
        ]]></bundle>


cheers,
Caspar



On 29 November 2012 12:02, Caspar MacRae <[email protected]> wrote:

>
> Hello,
>
> Although this is a trivial issue to raise, the ability to dynamically wrap
> urls both on the commandline and in features.xml is incredibly valuable
> (not to mention very, very cool) - it's just a pain I do this so
> infrequently I have to re-discover it each time.
>
> There are a couple of caveats to using the wrap protocol on the command
> line:
>
>    1. You must use single quotes around the URL, as the dollar will be
>    interpreted by the Karaf shell.
>    2. You must use backslash to escape the exclamation mark (for example
>    export-package exclude patterns)
>
>
> Neither of these is required when defined in a features file.
>
> The documentation (checked for 2.3.0) for the Wrap URL handler doesn't
> give any usage examples.  I think it'd be great to have one example
> (command line and equivalent features.xml definition) with a note of the
> caveats above.
>
> I'm still unclear as to why the exclamation mark needs to be escaped, I
> don't think this is POSIX compliant, AFAIK the single quotes should prevent
> any interpretation (inconsistent as the dollar certainly doesn't need
> escaping).
>
> (I'd gladly file a jira and/or doc patch if required)
>
> thanks,
> Caspar
>
>
> For example:
>
> Commandline:
> install -s 'wrap:mvn:jboss/jbossall-client/
> 4.2.3.GA/$Bundle-SymbolicName=jbossall-client&Bundle-Version=4.2.3.GA&Export-Package=org.jboss.remoting;version=
> "4.2.3.GA",\!*'
>
> Features XML:
>
> <bundle>wrap:mvn:jboss/jbossall-client/${version.jboss}/$Bundle-SymbolicName=jbossall-client&Bundle-Version=${version.jboss}&Export-Package=org.jboss.remoting;version="${version.jboss}",!*</bundle>
>

Reply via email to