You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joerg Schaible (JIRA)" <ji...@codehaus.org> on 2006/08/08 00:18:09 UTC

[jira] Commented: (MCOMPILER-37) make configuration more flexible, and easier configuration based on jdk level

    [ http://jira.codehaus.org/browse/MCOMPILER-37?page=comments#action_71789 ] 
            
Joerg Schaible commented on MCOMPILER-37:
-----------------------------------------

Got this working. The trick is to add the same number of exclusions in both configuration. Reveals that internally the String array is simply reused without new initialization:

{nowiki}
	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-compiler-plugin</artifactId>
		<configuration>
			<source>1.3</source>
			<target>1.3</target>
			<excludes>
				<exclude>**/annotations/*</exclude>
				<exclude>**/enums/*</exclude>
			</excludes>
			<testExcludes>
				<exclude>**/annotations/*</exclude>
				<exclude>**/enums/*</exclude>
				<exclude>**/acceptance/SecurityManagerTest*</exclude>
			</testExcludes>
		</configuration>
		<executions>
			<execution>
				<id>compile-jdk15</id>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
					<excludes>
						<exclude>foo</exclude>
						<exclude>foo</exclude>
					</excludes>
					<testExcludes>
						<exclude>foo</exclude>
						<exclude>foo</exclude>
						<exclude>**/acceptance/SecurityManagerTest*</exclude>
					</testExcludes>
				</configuration>
				<goals>
					<goal>compile</goal>
					<goal>testCompile</goal>
				</goals>
			</execution>
		</executions>
	</plugin>
{nowiki}

> make configuration more flexible, and easier configuration based on jdk level
> -----------------------------------------------------------------------------
>
>                 Key: MCOMPILER-37
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-37
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Brett Porter
>             Fix For: 2.1
>
>
> see: http://mail-archives.apache.org/mod_mbox/maven-users/200603.mbox/%3C9e3862d80603261452w509238afx9472b4850007f904@mail.gmail.com%3E and rest of that thread.
> the plugin needs to be more flexible in regards to setting the compiler settings for the tests vs the main source tree, and could be easier to configure in general for different language settings.

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