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 2021/08/22 17:44:08 UTC

[maven-javadoc-plugin] branch MJAVADOC-680 updated: Fix IT

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

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


The following commit(s) were added to refs/heads/MJAVADOC-680 by this push:
     new 59cad26  Fix IT
59cad26 is described below

commit 59cad26ade2b44a1116e54ea757963273a26baa2
Author: rfscholte <rf...@apache.org>
AuthorDate: Sun Aug 22 19:43:54 2021 +0200

    Fix IT
---
 src/it/projects/MJAVADOC-580_detectLinks/verify.groovy | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/it/projects/MJAVADOC-580_detectLinks/verify.groovy b/src/it/projects/MJAVADOC-580_detectLinks/verify.groovy
index c296a4e..9e16b41 100644
--- a/src/it/projects/MJAVADOC-580_detectLinks/verify.groovy
+++ b/src/it/projects/MJAVADOC-580_detectLinks/verify.groovy
@@ -17,5 +17,15 @@
  * under the License.
  */
  
-def buildLog = new File(basedir,'build.log')
-assert buildLog.readLines().any{ it ==~ /\[DEBUG\] Found Java API link: .*\/javase\/\d+\/docs\/api\// }
+int javaVersion = System.getProperty( "java.specification.version" ) as Integer
+
+if ( javaVersion < 16 )
+{
+  def buildLog = new File(basedir,'build.log')
+  assert buildLog.readLines().any{ it ==~ /\[DEBUG\] Found Java API link: .*\/javase\/\d+\/docs\/api\// }
+}
+else
+{
+  def barHtml = new File(basedir,'target/site/apidocs/foo/Bar.html')
+  assert barHtml.text =~ /<a href="https:[^"]+Object.html"/
+}