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 <[EMAIL PROTECTED]> 

> 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 
> [email protected] 
> https://dev.eclipse.org/mailman/listinfo/aspectj-users 
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to