|How do I run a binary woven project? [message #1002988]
||Sun, 20 January 2013 02:07
| Tinco Andringa
Registered: January 2013
Hi, I am not very comfortable in Eclipse so this might be a simple question.|
I made two projects, one is an AspectJ project, the other a regular Java project.
In the regular Java project I have a method main, that just writes hello world to stdout.
In the AspectJ project I have defined an aspect that cuts into main with a before advice that prints out "Hello from AspectJ". I've tested this aspect, and it works on any main methods inside the AJ project.
Now I have added the Java project to the InPath, so the advice gets woven into that too. I enabled the information messages and it reports that it has successfully woven my advice.
Now when I run the Java project it does not say "Hello from AspectJ", I take it this is because it runs the non-woven files.
My question is: How do I run the woven version of the Java project? I see in my terminal that it is in bin/ of the AspectJ project, but I don't know how I would run it using the right classpath and such.
Powered by FUDForum
. Page generated in 0.01655 seconds