Tadeas Kriz created MCOMPILER-216:
-------------------------------------

             Summary: Includes and excludes not passed into 
CompilerConfiguration
                 Key: MCOMPILER-216
                 URL: https://jira.codehaus.org/browse/MCOMPILER-216
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.1
            Reporter: Tadeas Kriz
            Priority: Critical


When <includes>, <exclusions>, <testIncludes> or <testExcludes> are set in the 
configuration of maven-compiler-plugin in the pom.xml file, it doesn't 
propagate into the used compiler as part of the CompilerConfiguration, although 
the CompilerConfiguration has getters and setters for includes and excludes.

There's an example:
groovy-eclipse-compiler is built on top of plexus-compiler API and as you can 
see here: 
https://github.com/groovy/groovy-eclipse/blob/master/extras/groovy-eclipse-compiler/src/main/java/org/codehaus/groovy/eclipse/compiler/GroovyEclipseCompiler.java#L150
 they use the getIncludes() and getExcludes() from the CompilerConfiguration, 
so plugin users can decide what will be included or excluded. Unfortunately, 
the getIncludes() and getExcludes() always return empty Set.

In our scenario, we wanted to exclude all .java files, but because of this bug, 
there is no such way to do this, even though there should be.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to