Hi,
I want to test aspectj by add a Trace.java code to the aspectj source directory.
package myPackage;
public aspect Trace
{
pointcut publicMethods() : execution(public * com.chinatm..*(..));
pointcut logObjectCalls() : execution(* ILogger.*(..));
pointcut loggableCalls() : publicMethods() && ! logObjectCalls();
before() : loggableCalls()
{
System.out.println("Enter->" + thisJoinPoint.getSignature().toString());
}
after() : loggableCalls()
{
System.out.println("Exit->" + thisJoinPoint.getSignature().toString());
}
}
I have added <aspectSourceDirectory>src/aspectj</aspectSourceDirectory> to the
project.xml file. Then I type maven clean aspectj jar. The build process is success.
However, I found no java source code is weaved by the aspectj code.
Then I move all source file from src/java to src/aspectj. The result is same. Can
anyone tell me where I am wrong. Thx!
Green