Re: [aspectwerkz-dev] AnnotationC task and anonymous inner class
Alexandre Vasseur <[email protected]> Sat, 9 Oct 2004 16:24:08 +0200
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
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 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. > >> > > > >