Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Problem with binary weaving

Hi,

I have a problem with binary weaving.

I have some code I like to trace.

So i changed the tracing example to trace all the code in
my package de.hwb.* (see source code below).

I tried weaving from console:

C:\temp\aspect>C:\temp\aspectj1.5\bin\ajc -cp C:\temp\aspectj1.5\lib\aspectjrt.j
ar;C:\temp\aspectj1.5\lib\aspectjtools.jar;classes_hwb;C:\jboss-4.0.4\lib\log4j-
boot.jar;classes_tracing -inpath classes_hwb -aspectpath classes_tracing

I also tried it from within eclipse but got a message

Severity and Description Path Resource Location Creation Time Id
Project HWBTracing is missing required inpath entry: classes_hwb HWBTracing Unknown 1174069294821 82905

when I tried to add the classes to the inpath.

Whats going wrong here.

Cheers

Florian

package tracing.lib;



aspect TraceMyClasses extends AbstractTrace {
/**
* The application classes
*/
pointcut classes(): within(de.hwb.*);
/**
* The constructors in those classes - but only the ones with 3
* arguments.
*/
pointcut constructors(): execution(new(..));
/**
* This specifies all the message executions.
*/
pointcut methods(): execution(* *(..));


}

Back to the top