<?xml version="1.0"?>

<project name="PojoCache tasks">
   <!--
   Tasks definition for aopc. ou will need to define the "source" and "build" directory. It will byte-code
   instrumented your POJOs and update them under build directory. You can verify this by doing
   a listing there to confirm creation of new (and additional) classes.
   -->

   <!-- set local properties for this build -->
   <path id="pojocache.lib.classpath">
      <fileset dir="${cache_lib}">
         <include name="jboss-aop.jar"/>
         <include name="jboss-cache.jar"/>
         <include name="jboss-common.jar"/>
         <include name="concurrent.jar"/>
         <include name="javassist.jar"/>
         <include name="trove.jar"/>
      </fileset>
   </path>

   <path id="jboss.aop.classpath">
      <fileset dir="${cache_lib}">
         <include name="jboss-aop.jar"/>
      </fileset>
   </path>

   <!-- pre-compile directory with aopc -->
   <target name="aopc" depends="compile" description="Precompile aop test classes">

      <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="jboss.aop.classpath"/>

      <aopc compilerclasspathref="pojocache.lib.classpath" verbose="true">
         <src path="${build}"/>
         <aoppath path="${basedir}/jboss-aop.xml"/>
         <classpath refid="user.classpath"/>
      </aopc>
   </target>

</project>
