3 Replies Latest reply on Sep 15, 2005 5:03 AM by kabirkhan

    AnnotationC and logging/verbose

    irsnout

      Hi

      I am trying to execute annotationC (ant task) on a large project and I am getting multiple parsing errors. I tried to use the verbose="true" parameter on my ant task but it doesn't work (not supported??). Is there any way to get a log out of the annotation compiler?

      TIA

      Eric

        • 1. Re: AnnotationC and logging/verbose


          * Get the sources (cvs or anyhow)
          * Find: <JBOSS_AOP>/src/aspect-framework/main/org/jboss/aop/annotation/compiler/ByteCodeAnnotationCompiler.java
          Method: compile(String[] args)

          This method takes care of pre-post-compiling Java classes. You can add:
          log.debug("Compiling my favourite class: " + clazz.getClass().getName());

          Then:
          * Compile sources.
          * Copy dist libs to your project
          * Use your custom jboss-aop-1.3-with-annotationcLogging

          Right? ;)

          Tomasz

          PS. I suppose it'll work. I didn't tested that. Took me 3 minutes to find the place in the code.. Try it out.

          • 2. Re: AnnotationC and logging/verbose
            freezy

            I also ran into a problem with annotationc: it created a "metadata-aop.xml" file with something like "package.POJO->main(String[] args)" in it. Unfortunately, AOPC didn't like that and failed because of the "[" characters...

            Maybe it helps you...

            • 3. Re: AnnotationC and logging/verbose
              kabirkhan

              I fixed the problem with [ and ] in cvs