[
http://jira.jboss.com/jira/browse/JBAOP-448?page=all ]
Anders Andersen closed JBAOP-448.
---------------------------------
Resolution: Done
I have tested the fix now.
It works.
I can see if I add the include it only compiles the classes in the include
If I do not add include it tries to compile everything
I suggest that we added a debug statement
if(getLog().isDebugEnabled()) {
getLog().debug("Execute AOPC compiler command: "+cl.toString());
}
so maven .... -X displayes the call to the command.
maven-jbossaop-plugin cannot use include of classes
---------------------------------------------------
Key: JBAOP-448
URL:
http://jira.jboss.com/jira/browse/JBAOP-448
Project: JBoss AOP
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Environment: any maven2
Reporter: Anders Andersen
Assigned To: Stale Pedersen
The ant target
<taskdef
name="aopc"
classname="org.jboss.aop.ant.AopC"
classpathref="jbossaop.task.classpath"/>
is cabable of including specific classes
Sample:
<aopc compilerclasspathref="aop.classpath"
verbose="true">
<classpath refid="aopc.classpath"/>
<src path="${build.classes}"/>
<aoppath
path="${build.resources}/portal-wsrp-sar/wsrp-aop.xml"/>
<include
name="org/jboss/portal/wsrp/consumer/ConsumerRegistryService.class"/>
</aopc>
Sample of what it could look like in maven2
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jbossaop-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<configuration>
<aoppath>${basedir}/../portal-wsrp-sar/src/main/resources/wsrp-aop.xml</aoppath>
<verbose>true</verbose>
<includes>
<include>org/jboss/portal/wsrp/consumer/ConsumerRegistryService.class</include>
</includes>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira