The following comment has been added to this issue:

     Author: Mark Proctor
    Created: Mon, 2 Aug 2004 4:28 PM
       Body:
I have further enhanced this in drools and include for reference purposes.

So that users can specify features they want compiled in at runtime I create a file in 
src/aspects/conf that specifes the aspects to weave for that feature. That way I can 
just do the following to specify the features I want:
drools.aspects = event-model, trace

The code to achieve this is:

    <preGoal name="java:compile">
        <j:set var="droolsAspects" value="${drools.aspects}"/>

        <j:if test="${droolsAspects != null}">
            <util:tokenize var="tokens" delim="," 
trim="true">${droolsAspects}</util:tokenize>

            <j:forEach var="token" items="${tokens}">
              <j:set var="mavenAspects" 
value="${mavenAspects},src/aspects/conf/${token.trim()}.conf"/>
            </j:forEach>

            <j:if test="${mavenAspects != ''}">
               <j:set var="maven.aspectj.aspects" value="${mavenAspects}" />

               <attainGoal name="aspectj:compile"/>
            </j:if>
        </j:if>

    </preGoal>
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPASPECTJ-12?page=comments#action_22641

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPASPECTJ-12

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPASPECTJ-12
    Summary: Optional Aspects
       Type: New Feature

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-aspectj-plugin

   Assignee: 
   Reporter: Mark Proctor

    Created: Mon, 2 Aug 2004 4:22 PM
    Updated: Mon, 2 Aug 2004 4:28 PM

Description:
We need the ability to weave in optional aspects.


---------------------------------------------------------------------
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]

Reply via email to