Compiler plugin ignores includes / excludes
-------------------------------------------
Key: MCOMPILER-26
URL: http://jira.codehaus.org/browse/MCOMPILER-26
Project: Maven 2.x Compiler Plugin
Type: Bug
Versions: 2.0
Reporter: Carlos Sanchez
Priority: Critical
Fix For: 2.0.1
The plexus-compiler-javac component adds "-sourcepath" argument always, but I
believe it shouldn't be included when the list of source files is provided,
causing that javac tries to compile not included files.
example configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<includes>
<include>org/springframework/core/**</include>
<include>org/springframework/util/**</include>
</includes>
<testIncludes>
<include>org/springframework/core/**</include>
<include>org/springframework/util/**</include>
</testIncludes>
<testExcludes>
<exclude>org/springframework/util/comparator/ComparatorTests.java</exclude>
<exclude>org/springframework/util/ClassUtilsTests.java</exclude>
<exclude>org/springframework/util/ObjectUtilsTests.java</exclude>
<exclude>org/springframework/util/ReflectionUtilsTests.java</exclude>
<exclude>org/springframework/util/SerializationTestUtils.java</exclude>
<exclude>org/springframework/core/io/ResourceTests.java</exclude>
</testExcludes>
</configuration>
</plugin>
--
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, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]