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

Reply via email to