[ 
http://jira.codehaus.org/browse/MASPECTJ-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=165921#action_165921
 ] 

Andreas Kuhtz commented on MASPECTJ-9:
--------------------------------------

If this patch would have been applied it would be possible by configuration to 
run tests with no sources on {{src/main/*}} and have only test-classes on the 
weavepath (-inpath). This problem was described in the mailing list with the 
subject 'Groovy + AspectJ' some days ago.


{code:xml|title=pom.xml|borderStyle=solid}
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>aspectj-maven-plugin</artifactId>
        <version>1.2-SNAPSHOT</version>
        <executions>
          <execution>
            <phase>process-test-classes</phase>
            <goals>
              <goal>test-compile</goal>
            </goals>
            <configuration>
                <!--
                <verbose>true</verbose>
                <showWeaveInfo>true</showWeaveInfo>
                -->
            
                <complianceLevel>1.5</complianceLevel>
                
<ajdtBuildDefFile>src/test/resources/test.ajproperties</ajdtBuildDefFile>

                <testAspectDirectory>src/test/java</testAspectDirectory>
                
                <weaveMainSourceFolder>false</weaveMainSourceFolder>
                
<weaveWithAspectsInMainSourceFolder>false</weaveWithAspectsInMainSourceFolder>
                
                <weaveDirectories>
                    
<weaveDirectory>${project.build.directory}/test-classes</weaveDirectory>
                </weaveDirectories>
            </configuration>
          </execution>
        </executions>
      </plugin>
{code} 

{code:java|title=test.ajproperties|borderStyle=solid}
src.includes = src/test/java,src/test/groovy
{code} 

The patch from Thorsten is missing a new dependency in pom.xml:
{code:xml|title=pom.xml|borderStyle=solid}
<!-- Lang -->
<dependency>
   <groupId>commons-lang</groupId>
   <artifactId>commons-lang</artifactId>
   <version>2.4</version>
</dependency>
{code} 


> Add support for weaving classes in folders instead of jars
> ----------------------------------------------------------
>
>                 Key: MASPECTJ-9
>                 URL: http://jira.codehaus.org/browse/MASPECTJ-9
>             Project: Mojo AspectJ Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.0
>            Reporter: Torsten Juergeleit
>         Attachments: weavedirectories.patch
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> Currently the plugin only supports adding jars to the ajc commandline 
> parameter "-inpath". But "-inpath" supports folders with classes as well.
> The attached patch adds the new plugin option "weaveDirectories" to specify a 
> list of folders with .class files to be added to the value for the "-inpath" 
> parameter. A unit test and documentation is included as well.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to