Re: [aspectwerkz-dev] AnnotationC task and anonymous inner class
the_mindstorm <[email protected]> Sat, 09 Oct 2004 23:50:31 +0300
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
Quote [Alexandre Vasseur]: > i d rather have the equivalent of the Ant snip posted here > (f.e. if you have .dtd / .xml / .properties stuff in your src dir then > everything is preserved.) > Alex While I see the need for copying anonymous inner classes into the target directory directly from the Ant task, I cannot see why such a task would manage resources. Usually this is done by another task allowing filtering (or more complex tasks: replacing ,etc). Afaik the only tool doing this automatically is the Eclipse builder (but I do not always agree this being a good solution. For example I have some properties file that go inside the final jar and they contain tokens to be replaced). Surely the task is an easy one to be done, but I would like to clarify the needs before doing it. A solution that will be more configurable would be to present in the task another property (copyResources) to trigger this additional step. (I think I remember this option in AJ). ./the_mindstorm PS: unfortunately I wasn't able to finish today the AspectWerkzCTask, but I hope tomorrow will be a more quiet day that will allow me to finish it. PPS: while thinking of this I have remember at some point we have started a discussion about generating AOP-ish javadoc. I would like to re-start this in order to allow me to start working on it. What do you think? > > > On Sat, 09 Oct 2004 17:20:08 +0300, the_mindstorm > <[email protected]> wrote: >> Quote [Alexandre Vasseur]: >> >> > exact ! >> > Thanks for remembering that Allan >> > The AnnotationCTask is indeed the right place for it. >> > Alex >> > >> >> yep i will fix this asap. But i guess i could copy only the <name>$<name>.class, ain't it? >> >> >> ./the_mindstorm >> >> >> >> > >> > On Sat, 9 Oct 2004 09:12:17 -0300, Allan Jones <[email protected]> wrote: >> >> one day, I wrote: >> >> >> >> "One minor bug. >> >> When we use "-dest" in AnnotationC, Anonymous Inner Classes are not >> >> copied to dest directory. When we run our classes, >> >> java.lang.NoClassDefFoundError occurs" >> >> >> >> and Alexandre Vasseur said: >> >> >> >> "Ok the AnnotationC issue cannot be solved in the framework. >> >> >> >> Anonymous inner classes are not parsed by Qdox that is used to parse >> >> the source code (note: cannot handle annotation on anonymous inner >> >> class neither by the way). Thus the anonymous inner class is not >> >> analyzed by AnnotationC. >> >> >> >> So when using -dest flag, add the following just after the call to >> >> AnnotationC in your Ant script: >> >> <copy todir="classes/annotated" overwrite="false"> >> >> <fileset dir="classes/regular"/> >> >> </copy>" >> >> >> >> Now that you´re doing an ant task, the task could resolve this problem >> >> by copying the missing classes to the dest dir. >> >> >> >> -- >> >> Allan Jones >> >> Summa Technologies do Brasil ltda. >> >> >> > >> >> >