[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Ant probems with 1.06

Hi,

I am able to use the command-line version of ajc with no problems, but when
I use the Ant task to compile my entire app (1500~2000 classes), I get
problems.  The Ant task will finish fine but some of the generated Class
files will be bad.  For instance, in Classes that was working fine (after
command-line compile), I will now get NoSuchMethodError and some
NoClassDefFoundError.

Has anyone else had problems using the Anttask to compile large projects ?

Here is my Ant script run from IntelliJ3.01.

**********************************************
<project name="C3CAspectJ" default="compile" >
    <taskdef name="ajc"
        classname="org.aspectj.tools.ant.taskdefs.Ajc" >
        <!-- declare classes needed to run the tasks and tools -->
        <classpath>
            <pathelement
location="/usr/local/java/aspectj/aspectj1.0/lib/aspectjtools.jar"/>
            <pathelement
location="/usr/local/java/aspectj/aspectj1.0/lib/aspectj-ant.jar"/>
            <pathelement
location="/usr/local/java/jdk/j2sdk1_3_1/lib/tools.jar"/>
        </classpath>
    </taskdef>
    <target name="compile" >
        <ajc srcdir=".."
            destdir="../.."
            excludes="common/service/**,pswitch/**,c3c/server/**,rmi/**,
            security/weblogic/**,tools/**,common/bo/**,common/db/**,
            util/Servlet*"
            deprecation="true" >
        </ajc>
    </target>
</project>
**********************************************************

Thanks,
Jim