vmassol 2004/01/03 03:14:57
Modified: aspectwerkz plugin.jelly
aspectwerkz/xdocs properties.xml
Log:
Added support for weaving aspectwerkz libraries when running aspectwerkz:weave
Revision Changes Path
1.15 +9 -0 maven-plugins/aspectwerkz/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/aspectwerkz/plugin.jelly,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- plugin.jelly 2 Jan 2004 14:28:20 -0000 1.14
+++ plugin.jelly 3 Jan 2004 11:14:57 -0000 1.15
@@ -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"/>
1.6 +19 -0 maven-plugins/aspectwerkz/xdocs/properties.xml
Index: properties.xml
===================================================================
RCS file: /home/cvs/maven-plugins/aspectwerkz/xdocs/properties.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- properties.xml 2 Jan 2004 14:09:03 -0000 1.5
+++ properties.xml 3 Jan 2004 11:14:57 -0000 1.6
@@ -6,6 +6,25 @@
<author email="[EMAIL PROTECTED]">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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]