[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.ajdt] Re: Aspectj export fails because IMessageHandler cannot be found
|
- From: Andrew Eisenberg <andrew.eisenberg@xxxxxxxxxxxxxxxx>
- Date: Fri, 28 Aug 2009 09:22:35 -0700
- Newsgroups: eclipse.technology.ajdt
- Organization: EclipseCorner
- Thread-index: Acon+8BMmil342EV2EKbsxxPx2R2Dg==
- Thread-topic: Aspectj export fails because IMessageHandler cannot be found
- User-agent: Microsoft-Entourage/12.20.0.090605
Hi Ivica,
org.aspectj.ajde must be in the target platform in order for the build to
work. So, add that bundle to the target platform and it should work.
>
> The problem occurs only when I use custom target platform.
> It seems that ajde is not resolved when ajde.classpath is generated, and
> it's causing the problem.
>
> I don't think bundles have to be resolved in order to be added to
> ajde.classpath,
> so I have replaced:
>
> // now add prerequisite bundles
> BundleDescription[] prereqs = bundle.getResolvedRequires();
> for (int i = 0; i < prereqs.length; i++) {
> String[] pcp = bundleToCP(prereqs[i]);
> pathList.addAll(Arrays.asList(pcp));
> }
> with:
>
> BundleSpecification[] prereqs = bundle.getRequiredBundles();
> for (int i = 0; i < prereqs.length; i++) {
> BundleDescription prereqBundle = getModel(prereqs[i].getName(), null);
> if (prereqBundle != null ) {
> String[] pcp = bundleToCP(prereqBundle);
> pathList.addAll(Arrays.asList(pcp));
> }
> }
>
> I'm not sure if this has more implications.
>