You can remove the archives .class before compiling the sources. I use a modified version
of build file. Try:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <project default="run" name="JBossAOP">
| <property name="jboss.aop.root"
value="/opt/project/library/jboss-aop"/>
| <property name="jboss.aop.lib50"
value="${jboss.aop.root}/lib-50"/>
| <property name="buildpath" value="${basedir}/bin"/>
| <property name="class.main" value="Driver"/>
|
| <target name="prepare">
|
| <path id="jboss.aop.classpath50">
| <fileset dir="${jboss.aop.lib50}">
| <include name="*.jar"/>
| </fileset>
| </path>
|
| <path id="classpath">
| <path refid="jboss.aop.classpath50"/>
| <pathelement path="."/>
| </path>
|
| <property name="aop50jar"
value="${jboss.aop.lib50}/jboss-aop-jdk50.jar"/>
|
| <path id="classpath50">
| <path refid="jboss.aop.classpath50"/>
| <pathelement path="."/>
| </path>
|
| <taskdef name="aopc" classname="org.jboss.aop.ant.AopC"
classpathref="jboss.aop.classpath50"/>
| </target>
|
| <target name="clean">
| <delete dir="${buildpath}" />
| <mkdir dir="${buildpath}" />
| </target>
|
| <target name="compile" depends="prepare">
| <javac srcdir="."
| destdir="${buildpath}"
| debug="on"
| deprecation="on"
| optimize="off"
| includes="**">
| <classpath refid="classpath"/>
| </javac>
| <aopc compilerclasspathref="classpath"
classpathref="classpath" verbose="true">
| <classpath path="${buildpath}"/>
| <src path="."/>
| <aopclasspath path="."/>
| </aopc>
| </target>
|
| <target name="run" depends="clean,compile">
| <java fork="yes" failOnError="true"
className="${class.main}">
| <sysproperty key="jboss.aop.class.path"
value="."/>
| <classpath refid="classpath"/>
| <classpath path="${buildpath}"/>
| </java>
| </target>
|
| <target name="compile50standalone" depends="prepare">
| <javac srcdir="."
| destdir="."
| debug="on"
| deprecation="on"
| optimize="off"
| includes="**">
| <classpath refid="classpath50"/>
| </javac>
| </target>
|
| <target name="run.50.instrumented"
depends="compile50standalone">
| <java fork="yes" failOnError="true"
className="${class.main}">
| <sysproperty key="jboss.aop.class.path"
value="."/>
| <jvmarg value="-javaagent:${aop50jar}"/>
| <classpath path="${buildpath}"/>
| <classpath refid="classpath50"/>
| </java>
| </target>
|
| </project>
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990749#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...