Check that aspectSourceDirectory is defined in pom

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
carlos committed 2004-06-30 20:12:36 +00:00
1 parent 78b8d5a788
commit 859ef1e964
3 files changed
+36 -4

No files matched your search

+26 -3
View File
@@ -32,6 +32,7 @@
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
xmlns:define="jelly:define"
xmlns:log="jelly:log"
xmlns:test="test"
xmlns:aspectj="aspectj">
@@ -127,11 +128,33 @@
<j:set var="shouldWeave" value="false"/>
<!-- Are there aspect sources -->
<ant:available property="aspectSourcesPresent" file="${pom.build.aspectSourceDirectory}"/>
<!-- Check if there are aspect sources -->
<j:choose>
<!-- if aspectSourceDirectory is defined in pom -->
<j:when test="${pom.build.aspectSourceDirectory != ''}">
<ant:available property="aspectSourcesPresent" file="${pom.build.aspectSourceDirectory}" type="dir"/>
<j:choose>
<!-- if dir exists -->
<j:when test="${aspectSourcesPresent == 'true'}">
<log:debug>Aspect sources present in directory: ${pom.build.aspectSourceDirectory}</log:debug>
<j:set var="aspectSourcesPresent" value="true"/>
</j:when>
<!-- if dir does not exist -->
<j:otherwise>
<log:error>Aspect source directory does not exist: ${pom.build.aspectSourceDirectory}</log:error>
<j:set var="aspectSourcesPresent" value="false"/>
</j:otherwise>
</j:choose>
</j:when>
<!-- if aspectSourceDirectory is not defined in pom -->
<j:otherwise>
<log:info>Aspect source directory not specified</log:info>
<j:set var="aspectSourcesPresent" value="false"/>
</j:otherwise>
</j:choose>
<!-- If there aren't aspect sources check if there are aspect libraries -->
<j:if test="${aspectSourcesPresent == null}">
<j:if test="${aspectSourcesPresent == 'false'}">
<j:forEach var="artifact" items="${pom.artifacts}">
<j:set var="dep" value="${artifact.dependency}"/>
<j:if test="${dep.getProperty('aspectj.weaveWith')=='true' and dep.type=='jar'}">
+6 -1
View File
@@ -23,7 +23,7 @@
<pomVersion>3</pomVersion>
<id>maven-aspectj-plugin</id>
<name>Maven AspectJ Plugin</name>
<currentVersion>3.1</currentVersion>
<currentVersion>3.1.1-SNAPSHOT</currentVersion>
<description/>
<shortDescription>AspectJ Plugin for Maven</shortDescription>
<url>http://maven.apache.org/reference/plugins/aspectj/</url>
@@ -113,5 +113,10 @@
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>commons-jelly</groupId>
<artifactId>commons-jelly-tags-log</artifactId>
<version>20030211.142821</version>
</dependency>
</dependencies>
</project>
+4
View File
@@ -27,6 +27,10 @@
<author email="carlos@apache.org">Carlos Sanchez</author>
</properties>
<body>
<release version="3.1.1" date="in CVS">
<action dev="carlos" type="add">Output messages to log</action>
<action dev="carlos" type="fix">Check that aspectSourceDirectory is defined in pom</action>
</release>
<release version="3.1" date="2004-06-20">
<action dev="carlos" type="add" issue="MPASPECTJ-6">Weave test classes</action>
<action dev="carlos" type="add" issue="MPASPECTJ-10">Added "Compiling aspect sources" section to xdoc</action>