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

Reply via email to