Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Using Ant

I've not tried it that way.

I'd suggest using the iajc ant task (see docs)

On 13/05/2009 20:31, Wade Girard wrote:
This is a separate issue from the one I emailed earlier...

I am trying to get my aspects to compile using ant.

$ ant -version
Apache Ant version 1.7.0 compiled on August 25 2008

$ ../aspectj/bin/ajc -version
AspectJ Compiler 1.6.4 (1.6.4 - Built: Thursday Apr 2, 2009 at 16:03:17 GMT) - Eclipse Compiler 0.785_R33x, 3.3

ant command I am using

ant -lib /path/to/aspectj/lib clean install

in the build.xml file I have added
<property name="ajc" value="org.aspectj.tools.ant.taskdefs.Ajc11CompilerAdapter" />

and my javac task looks like

<javac debug="true" srcdir="${src}" destdir="${build}" classpath="${cp}" source="1.5" target="1.5">
            <compilerarg compiler="${ajc}"/>
        </javac>

note that I just added the compilerarg...

the output from the compiling phase is
[javac] Compiling 139 source files to  ...

It builds without any error, but the aspects do not appears as class files in the jar. Should they?

I think that I am missing some fundamental step in the process of building outside of eclipse.

Wade Girard
wade.girard@xxxxxxxxx



_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Back to the top