Re: AspectJ and WebObjects?

From: Harald Niesche (haral..heco.de)
Date: Tue Dec 23 2003 - 20:30:14 EST

  • Next message: Ulrich Köster: "Re: AspectJ and WebObjects?"

    Kaelin Colclasure wrote:
    > It has occurred to me on several occasions that AspectJ might be an
    > invaluable tool for learning the ins and outs of WebObjects.

    Sounds interesting, what's your plan?

    > Has anyone
    > on these lists experimented with this? I've just tried installing the
    > latest (1.1.4) AJDT Eclipse plugin, but it unfortunately does not seem
    > to play well with WOLips.:
    >
    > !ENTRY org.eclipse.ajdt.ui 4 0 Dec 22, 2003 21:22:08.892
    > !MESSAGE Compile failed.
    > !STACK 0
    > java.lang.NullPointerException
    > at
    > org.eclipse.ajdt.internal.ui.ajde.ProjectProperties.getClasspath(Project
    > Properties.java:206)
    > at org.eclipse.ajdt.internal.builder.Builder.build(Builder.java:150)
    ...
    >
    > I suspect that this is because WOLips has its own Builder classes (I
    > believe) which (presumably) handle classpath metadata differently from
    > the standard Eclipse Builder.

    WOLips has it's own builders, yes, but it does not handle the classpath
    differently ...

    > Using the AspectJ Ant tasks also seems to be a non-starter. It's
    > designed as essentially a drop-in replacement for the javac Ant task --
    > but again, WOProject Ant build files do not use the javac task.
    > Compiling is apparently all handled in the bowels of the woapplication
    > or woframework tasks instead. While this does make the build files
    > substantially more concise, it would appear to also make it impossible
    > to use alternative Java compilers in conjunction with WOProject... Or
    > is there (hopefully) something I'm missing?

    ... and the ant files generated by WOLips don't contain a javac task
    because the classes are compiled by the standard Eclipse Java compiler,
    the ant builder and the incremental builder mostly just copy stuff.

    Did you try a simple AspectJ project in your Eclipse installation? If
    you create a new AspectJ project (instead of a WOLips project), no part
    of WOLips should be involved and failure to build your project would
    probably be caused by the ajdt plugins ...

    Harald



    This archive was generated by hypermail 2.0.0 : Tue Dec 23 2003 - 20:29:44 EST