[ 
http://jira.codehaus.org/browse/MJNCSS-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175065#action_175065
 ] 

Mathias Stein commented on MJNCSS-12:
-------------------------------------

I have the same problem. 
The workaround using include tags did not work for me.

Whenever I try to add directories beside the sourceDirectory by adding include 
tags, nothing happens.
org.codehouse.plexus.util.DirectoryScanner seems to ignore all absolute or 
relative pathes pointing to directories outside the sourceDirectory and its sub 
directories.

Are there any plans to fix this issue?
Is there some workaound for the problem?

Ideally the fix would be based on ${project.compileSourceRoots} like e.g. the 
pmd-maven-plugin does already.
(The build-helper-maven-plugin goal add-source extends 
${project.compileSourceRoots}.)

> Source added using build-helper-maven-plugin is missing...?
> -----------------------------------------------------------
>
>                 Key: MJNCSS-12
>                 URL: http://jira.codehaus.org/browse/MJNCSS-12
>             Project: Maven 2.x JavaNCSS Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-2
>         Environment: Windows XP, Maven 2.0.5, 
> org.codehaus.mojo:build-helper-maven-plugin:1.0
>            Reporter: Jan Palmquist
>            Assignee: Jean-Laurent de Morlhon
>
> Sources added by build-helper-maven-plugin does not get analyzed using this 
> plugin (javancss:report).
> ncss-plugin is documented as to analyze all sources being built by default...
> I guess a workaround is to add the source-directory using the <includes> 
> configuration...
> In my case, I use the following build-helper-maven-plugin configuration:
>   <build>
>     <plugins>
>          ....
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>build-helper-maven-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>add-source</id>
>             <phase>generate-sources</phase>
>             <goals>
>               <goal>add-source</goal>
>             </goals>
>             <configuration>
>               <sources>
>                 <source>src/main/java</source>
>                 <source>src/main/java-generated</source>
>               </sources>
>             </configuration>
>           </execution>
>           <execution>
>             <id>add-test-source</id>
>             <phase>generate-sources</phase>
>             <goals>
>               <goal>add-test-source</goal>
>             </goals>
>             <configuration>
>               <sources>
>                 <source>src/test/java</source>
>                 <source>src/test/java-generated</source>
>               </sources>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>          ....
>     </plugins>
>   </build>

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