This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MJAVADOC-555
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git


The following commit(s) were added to refs/heads/MJAVADOC-555 by this push:
     new 744514f  [MJAVADOC-555] Force Java 11 if unknown
744514f is described below

commit 744514f196b91290ac597868f8507dd893f72470
Author: rfscholte <[email protected]>
AuthorDate: Sun Oct 20 14:55:53 2019 +0200

    [MJAVADOC-555] Force Java 11 if unknown
---
 src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy 
b/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
index 1e671af..bcff819 100644
--- a/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
+++ b/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
@@ -21,7 +21,7 @@ try {
 
 def classFile 
 
-int javaVersion = (System.getProperty( 'java.specification.version' ) ?: 
System.getProperty( 'java.version' ).find('\\d+'))  as Integer 
+int javaVersion = (System.getProperty( 'java.specification.version' ) ?: 
System.getProperty( 'java.version' ).find('\\d+') ?: '11')  as Integer 
 if ( javaVersion >= 11 ) {
  classFile = new File( basedir, 
'target/apidocs/jul_to_slf4j/com/testcase/Testcase.html')
 } else {

Reply via email to