Yes, you can. Just check out the aopc target under build.xml that comes with the distro.
Thanks very much for replying. I tried to aspectize a class (one class in an existing application and it has a bunch of classes it depends on) using the aopc target example in the build.xml, but I couldn't get it to work. It would inevitably fail at some point saying something like:
Failed to aspectize class com... Could not find class it references com.. It may not be in your classpath and you may not be getting field and constructor weaving for this class.
Could you tell me how I need to set the different classpath properties inside the aopc target block?
i.e. compilerclasspathref, src path, aopclasspath, and classpath elements?
(I've tried setting all of them to include the all the classes but I always get that error)