[jboss-user] [JBoss AOP] - Re: aop precompiler ant task fails to find class reference

thebaz do-not-reply at jboss.com
Mon Jan 14 08:34:33 EST 2008


Hi all,
problem is solved. I had to change ant task build, course it was not good.
Just have to say sorry!

    <!--AOP COMPILATION-->
  |     <!-- set local properties for this build -->
  |     <path id="cachelib.classpath">
  |         <fileset dir="${cache_lib}">
  |             <include name="**/*.jar"/>
  |             <exclude name="jboss-cache.jar"/>
  |             <exclude name="jboss-aop.jar"/>
  |         </fileset>
  | 
  |         <fileset dir="${cache_lib-50}">
  |             <include name="**/*.jar"/>
  |         </fileset>
  |     </path>
  |     <path id="pojocache.lib.classpath">
  |         <fileset dir="${cache_lib}">
  |             <include name="jboss-common.jar"/>
  |             <include name="concurrent.jar"/>
  |             <include name="javassist.jar"/>
  |             <include name="trove.jar"/>
  |         </fileset>
  |         <fileset dir="${cache_lib-50}">
  |             <include name="jboss-cache-jdk50.jar"/>
  |             <include name="jboss-aop-jdk50.jar"/>
  |         </fileset>
  |     </path>
  | 
  |     <path id="jboss.aop.class.path">
  |         <fileset dir="${cache_lib}">
  |             <include name="jboss-aop-jdk50.jar"/>
  |         </fileset>
  |     </path>
  | 
  |     <path id="temp.cbe-user.classpath">
  |         <fileset dir="${basedir}/temp/${sar-filename}">
  |             <include name="*.jar"/>
  |             <exclude name="gto-*.jar"/>
  |         </fileset>
  |         <path refid="cachelib.classpath"/>
  |     </path>
  | 
  |     <!-- pre-compile directory with aopc -->
  |     <target name="aopc-cbe" description="Precompile aop classes">
  |         <unzip src="${basedir}/temp/${sar-filename}/gto-cbe.jar" dest="${basedir}/temp/gto-cbe"/>
  |         <delete file="${basedir}/temp/${sar-filename}/gto-cbe.jar"/>
  |         <path id="cbe-user.classpath">
  |             <fileset dir="${basedir}/temp/${sar-filename}">
  |                 <include name="gto-*.jar"/>
  |             </fileset>
  |             <pathelement path="${basedir}/temp/gto-cbe"/>
  |             <path refid="temp.cbe-user.classpath"/>
  |         </path>
  | 
  |         <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="pojocache.lib.classpath"/>
  |         <aopc compilerclasspathref="pojocache.lib.classpath" verbose="true">
  |             <src path="${basedir}/temp/gto-cbe"/>
  |             <aoppath path="${basedir}/jboss-aop.xml"/>
  |             <classpath refid="cbe-user.classpath"/>
  |         </aopc>
  | 
  |         <jar basedir="${basedir}/temp/gto-cbe" jarfile="${basedir}/temp/${sar-filename}/gto-cbe.jar">
  |             <patternset>
  |                 <include name="**/*.*"/>
  |             </patternset>
  |         </jar>
  |         <delete dir="${basedir}/temp/${sar-filename}/gto-cbe"/>
  |     </target>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119629#4119629

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119629



More information about the jboss-user mailing list