You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/10/20 12:15:27 UTC
[maven-javadoc-plugin] branch MJAVADOC-555 updated: [MJAVADOC-555]
Is this Java instance missing java.specification.version?
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 5159012 [MJAVADOC-555] Is this Java instance missing java.specification.version?
5159012 is described below
commit 515901263bb41d1046435cdb14c6d6ad9b2aae37
Author: rfscholte <rf...@apache.org>
AuthorDate: Sun Oct 20 14:15:17 2019 +0200
[MJAVADOC-555] Is this Java instance missing java.specification.version?
---
src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy | 3 ++-
1 file changed, 2 insertions(+), 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 7cf8a27..1e671af 100644
--- a/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
+++ b/src/it/projects/MJAVADOC-555_link-automatic-modules/verify.groovy
@@ -20,7 +20,8 @@
try {
def classFile
-int javaVersion = System.getProperty( "java.specification.version" ) as Integer
+
+int javaVersion = (System.getProperty( 'java.specification.version' ) ?: System.getProperty( 'java.version' ).find('\\d+')) as Integer
if ( javaVersion >= 11 ) {
classFile = new File( basedir, 'target/apidocs/jul_to_slf4j/com/testcase/Testcase.html')
} else {