Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ajdt-dev] Running JUnit Plug-in test with extended HierarchyBuilder

Hi Ajdt Folks,

as proposed by Mik Kersten (thanks Mik, i would be stuck in the middle
of nowhere without your help) i extented the hierarchy builder in order
to extract all information i can get from the aspectj compiler.
Now its about testing my implementation and i (have been) decided to
include JUnit plug-in tests for my project. Very strange things happen
when i try to run those tests. Once in a while, mostly on a fresh
restarted system, everything works fine. But most of the time the
example projects do not seem to be compiled using my extended version of
the hierarchy builder. As i'm not getting any error message i don't know
where to start.
I trigger the build in the following way:

AjBuildManager.setAsmHierarchyBuilder(ExtendedAsmHierarchyBuilder.getInstance());
...
AspectJPlugin.getDefault().setCurrentProject(project);
...
Ajde.getDefault().getBuildManager().buildFresh();

Perhaps I missed an important call or missused the interface. But when
operating manually in the run-time workbench it's working just fine...

I'll be happy about any comments regarding this problem.

Best regards,
Juergen
-- 
Juergen Graf <aspectj@xxxxxxxxxxxxxxxxx>

"When the solution is simple, God is answering."
  --  Albert Einstein


Back to the top