Hi,

Oh understood.

The wrap URL doesn't seem correct to me.

It should look like:

wrap:mvn:org.aspectj/aspectjrt/1.6.12$Bundle-SymbolicName=aspectjrt&Bundle-Version=1.6.12

The wrap URL use $ as a "separator":

http://team.ops4j.org/wiki/display/paxurl/Wrap+Protocol

especially:

wrap-uri := "wrap:" wrapped-jar-uri [ "," wrapping-instr-uri ] [ "$" wrapping-instructions ]

and the corresponding example:

wrap:mvn:commons-logging/commons-logging/1.1$Bundle-SymbolicName=JCL&Bundle-Version=1.1

Regards
JB

On 03/08/2012 01:12 AM, [email protected] wrote:
Hello JB,

I know this is the case for AspectJ version 1.6.12, but I am interested in the 
general case of any non-osgi bundle.

When firing the osgi:install command, we can provide arguments to tailor the 
bundle wrapping.
Is that possible or impossible when using Karaf's feature combined with the 
wrap: protocol?

If so - is there some documentation or example?
I have difficulty finding any information on the topic within either Karaf's or 
Pax's sites.

// Bästa hälsningar,
// [sw. "Best regards,"]
//
// Lennart Jörelid, Systems Architect
// [email protected]
________________________________________
Från: Jean-Baptiste Onofré [[email protected]]
Skickat: den 7 mars 2012 17:47
Till: [email protected]
Ämne: Re: Arguments to wrap: protocol in a feature definition?

Hi,

You have a aspectj bundle available at ServiceMix, you can install it
directly:

osgi:install
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aspectj/1.6.12_1

Regards
JB

On 03/07/2012 05:42 PM, [email protected] wrote:
Hello all,

I would like to create a boot-time feature which uses some of the
pax-construct's arguments.
That is, the osgi:install command can handle some parameters, such as
Bundle-SymbolicName and Bundle-Version:

root@karaf>  osgi:install
wrap:mvn:org.aspectj/aspectjrt/1.6.12,Bundle-SymbolicName=aspectjrt&Bundle-Version=1.6.12

The ability to change bundle properties is nice - and I would like to do
the same thing within a feature definition (the version tokens are
simply taken from a dependency.properties file):

<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0";
name="my_features">
<feature name="my-external-dependencies" version="${project.version}"
resolver="(obr)" start-level="41">

<bundle
dependency="true">mvn:commons-lang/commons-lang/${commons-lang/commons-lang/version}</bundle>
*<bundle>wrap:mvn:org.aspectj/aspectjrt/${org.aspectj/aspectjrt/version}</bundle>*
...

</feature>
</feature>

How should I change the highlighted bundle directive to alter the
Bundle-Name etc?

<bundle>wrap:mvn:org.aspectj/aspectjrt/${org.aspectj/aspectjrt/version},Bundle-Name=org.aspectj.aspectjrt&Bundle-SymbolicName=aspectjrt&Bundle-Version=${org.aspectj/aspectjrt/version}</bundle>

does not seem to work.

--
// Bästa hälsningar,
// [sw. "Best regards,"]
//
// Lennart Jörelid, Systems Architect
// email: [email protected]
<mailto:[email protected]>
// cell: +46 708 507 603
// skype: jgurueurope


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to