The following comment has been added to this issue:
Author: Alexey Dashkevich
Created: Wed, 8 Dec 2004 11:25 AM
Body:
I will describe situation when destination property will be helpful. For
example we have project with following structure:
project
|
- src
| |
| |-aspects
| | |- BusinessObjectAspect (weave methods that use connection to dummy
functionality)
| |-java
| | |- BusinessObject (has functionality that make connection to
database)
| |-test
| |- BusinessObjectTest (test for BusinessObject functionality)
I want to use BusinessObjectAspect for my test but I don't wont to include into
JAR weaved classes and aspects. So with current version of plugin I need to
make following in my own maven.xml:
<postGoal name="test:compile">
<j:set var="tmp" value="${maven.build.dest}"/>
<j:set var="maven.build.dest" value="${maven.test.dest}"/>
<attainGoal name="aspectj:compile"/>
<j:set var="maven.build.dest" value="${tmp}"/>
</postGoal>
I will attach new patch where I take in account changes in class path. And I
will create test case that use plugin with applied patch for MPASPECTJ-14. In
this case I can create more demonstrative test.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPASPECTJ-15?page=comments#action_27645
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPASPECTJ-15
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPASPECTJ-15
Summary: Add property that define output folder for aspectj:compile goal.
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-aspectj-plugin
Versions:
3.2
Assignee:
Reporter: Alexey Dashkevich
Created: Fri, 3 Dec 2004 9:58 AM
Updated: Wed, 8 Dec 2004 11:25 AM
Description:
It will be good to have property for destination folder for compiled sources.
It will be very helpful when you have aspects only for unit tests and don't
wont to have weaved classes in classes folder.
I propose to use property with name "maven.aspectj.dest" that by default will
set to "maven.build.dest".
I have attached patch where added proposed property and test case that use this
property.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]