Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1
-
Fix Version/s: 3.1.1
-
Labels:None
-
Environment:maven-1.0-rc4
-
Number of attachments :
Description
The aspectj plugin should check for the presence of the unit test
source directory before calling aspectj:compile. This is useful in cases where you want to define your preGoal in your subproject's maven.xml and subprojects don't have any tests defined. Otherwise you'll get a error telling you the 'maven.test.compile.src.set' property doesn't exist. This is easy to add, just add the following check to the aspectj:test-compile goal:
<j:set var="testSourceDir" value="$
{pom.build.unitTestSourceDirectory}"/>
<ant:available
property="hasTestDir"
file="$
"/>
<j:if test="$
{shouldWeave == 'true' and hasTestDir != null and testSourceDir != ''}">
Activity
Chad Brandon
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | plugin.jelly [ 12392 ] |
Carlos Sanchez
made changes -
| Assignee | Carlos Sanchez [ carlos ] |
Carlos Sanchez
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
Carlos Sanchez
made changes -
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
Carlos Sanchez
made changes -
| Fix Version/s | 3.1.1 [ 11240 ] |
Carlos Sanchez
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Reopened [ 4 ] | Closed [ 6 ] |