maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [maven-compiler-plugin] branch TEST_TO_FIX_MCOMPILER-192 updated: Cleaning up code.
Date Sat, 14 Apr 2018 09:07:00 GMT
This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch TEST_TO_FIX_MCOMPILER-192
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git


The following commit(s) were added to refs/heads/TEST_TO_FIX_MCOMPILER-192 by this push:
     new 98ac404  Cleaning up code.
98ac404 is described below

commit 98ac404e0a33c6ecd2427a378fa24c15c4de8457
Author: Karl Heinz Marbaise <khmarbaise@apache.org>
AuthorDate: Sat Apr 14 11:06:50 2018 +0200

    Cleaning up code.
---
 .../org/apache/maven/plugin/compiler/CompilerMojoTestCase.java | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
index 3882108..8f2e247 100644
--- a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
+++ b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
@@ -58,12 +58,10 @@ public class CompilerMojoTestCase
         super.setUp();
         
         String javaSpec = System.getProperty( "java.specification.version" );
-        if ( "9".equals( javaSpec ) )
-        {
-            source = "6";
-            target = "6";
-        }
-        if ( "10".equals( javaSpec ) )
+        // It is needed to set target/source to JDK 6 for JDK9 and JDK10
+        // cause this is the lowest version which is supported by those JDK's.
+        // The default source/target "5" is not supported anymore.
+        if ( "9".equals( javaSpec ) || "10".equals ( javaSpec ) )
         {
             source = "6";
             target = "6";

-- 
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.

Mime
View raw message