[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] How to compile manually files with aspectJ
|
Using ant, you can leverage the iajc task to compile. In your build file you can do the following:
<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement location="${aspectj_home}/lib/aspectjtools.jar"/>
</classpath>
</taskdef>
That will then make the iajc custom ant task available for your use, such as the following:
<target name="compile" depends="compile.setup">
<iajc destdir="${compiler_output_dir}" source="1.5" target="1.5" debug="on" verbose="true">
<classpath>
<pathelement location="${aspectj_runtime_jar}"/>
<pathelement location="${junit_jar}"/>
</classpath>
<sourceroots>
<pathelement location="${toplink_advice_src}"/>
<pathelement location="${monitored_codebase_src}"/>
<pathelement location="${basedir}/testcase"/>
</sourceroots>
<inpath>
<pathelement location="${original_toplink_jar}"/>
</inpath>
</iajc>
</target>
Please consult the AspectJ documentation on how to specify the iajc task for your intentions.
Hope that helps,
Doug
-------------- Original message --------------
From: Nuno Santos <developer@xxxxxxxxxxxxxx>
> Hi,
>
> I'm used to work with AspectJ toghether with Eclipse.
>
> Now i need to compile the files manually.
>
> How can i do that?
>
> Thx,
>
> Nuno
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users