I am using maven. Doing maven java:compile results in the error message shown
below.
maven.xml snippet
| postGoal name=java:compile
| echoRunning AopC/echo
| attainGoal name=aopCompile/
| /postGoal
|
| goal name=aopCompile
| taskdef name=aopc
well...actually, I can get the stack trace...but I dont know how to fix
itthe stack trace is
| BUILD FAILED
| Error running aopc compiler:
| at org.jboss.aop.ant.AopC.execute(AopC.java:278)
| at org.apache.tools.ant.Task.perform(Task.java:341)
| at
final update...I copied
| classpath id=aop.jboss.classpath
| pathelement path=${pom.getDependencyClasspath()}/
| pathelement location=${maven.build.dir}/classes/
| /classpath
|
under and it WORKED.
View the original post :
Thx for the response. The sample you have is the same i have in my build.
Problem is by the time in my build process aopc runsthe above classes
folder probably has around 3000 or so compiled classes.
My aspect definition in the -aop.xml file is against all classes that have a
pattern of
Hi,
From our testsuite:
| aopc compilerclasspathref=aop.task.classpath
| classpath refid=aop.task.classpath/
| classpath path=${build.tests.classes}/
| src path=${build.tests.classes}/
| include name=org/jboss/test/aop/basic/**/
|
Thanks for the tip. That works.
I would never have guessed that include would be a child element of aopc
itself. From the doc i thought i had to code in a ant fileset element.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3863226#3863226
Reply to the post :
I'll fix the docs. Thanks for bringing it up :-)
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3863252#3863252
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863252
---
As depends on first, all you need is only to compile needed plain _Java_
files - including aspects you want. Put then, every compiled *.class file into
your build directory and run on that directory.
Here snippets from my build.xml:
|
| target name=compile depends=common:read_params