[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] config.ini and equinox aspects

I am applying equinox aspects to Eclipse 3.4.1.  When I add this line
to my config.ini:

osgi.bundles=org.eclipse.equinox.weaving.aspectj@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start

I get an exception at startup:
org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: Missing Constraint: Require-Bundle: org.aspectj.weaver;
bundle-version="0.0.0"
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
<snip/>

But when I change the start level of org.eclipse.equinox.weaving.aspectj to 4:

osgi.bundles=org.eclipse.equinox.weaving.aspectj@4\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start

or when I add the aspectj runtime and weaving bundles to have a start
level of one as well:

osgi.bundles=org.aspectj.runtime@1\:start,org.aspectj.weaver@1\:start,org.eclipse.equinox.weaving.aspectj@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start

I get no exceptions at startup.

My question is, I would prefer to have the first option
(org.eclipse.equinox.weaving.aspectj@4\:start) are there any potential
problems with this?  Consider that I only want to weave a select few
bundles that all have a start level of 4.

thanks again,
--a