Added support for weaving aspectwerkz libraries when running aspectwerkz:weave

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2004-01-03 11:14:57 +00:00
parent abe2c4e36b
commit 07fce292be
2 changed files with 28 additions and 0 deletions

View File

@ -242,6 +242,15 @@
<ant:arg value="-verify"/>
<ant:arg file="${maven.aspectwerkz.weave.build.dir}"/>
<!-- Search for aspect libraries to weave to the source code. These are
defined as dependencies in project.xml -->
<j:forEach var="artifact" items="${pom.artifacts}">
<j:set var="dep" value="${artifact.dependency}"/>
<j:if test="${dep.getProperty('aspectwerkz.library') == 'true'}">
<ant:arg file="${artifact.path}"/>
</j:if>
</j:forEach>
<ant:classpath>
<ant:path refid="classpath.main"/>

View File

@ -6,6 +6,25 @@
<author email="vmassol@apache.org">Vincent Massol</author>
</properties>
<body>
<section name="Weaving aspect libraries">
<p>
It is possible to specify aspect libraries that will be weaved to the
main source code. For example:
</p>
<source><![CDATA[
<dependency>
<groupId>groupId</groupId>
<artifactId>artifactId</artifactId>
<version>version</version>
<type>jar|zip</type>
<properties>
<aspectwerkz.library>true</aspectwerkz.library>
</properties>
</dependency>
]]></source>
</section>
<section name="AspectWerkz generic properties">
<table>
<tr>