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

slachiewicz pushed a commit to branch openj9-footer
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git

commit 55f4f7fc16548c88fb7570d9ef340695b723f9c4
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Feb 26 13:40:26 2023 +0100

    (doc) ci fix: adopt-openj9 does not support the footer param
---
 .../apache/maven/plugins/javadoc/JavadocReportTest.java   | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java 
b/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java
index 502e6d66..cf462657 100644
--- a/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java
+++ b/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java
@@ -871,16 +871,23 @@ public class JavadocReportTest extends 
AbstractMojoTestCase {
         String content = readFile(overview);
         assertThat(content)
                 .contains("Top - Copyright &#169; All rights reserved.")
-                .contains("Header - Copyright &#169; All rights reserved.")
-                .contains("Footer - Copyright &#169; All rights reserved.");
+                .contains("Header - Copyright &#169; All rights reserved.");
+        // IBM dist of adopt-openj9 does not support the footer param
+        if (!System.getProperty("java.vm.name").contains("OpenJ9")) {
+            assertThat(content).contains("Footer - Copyright &#169; All rights 
reserved.");
+        }
 
         Path packageSummary = 
apidocs.resolve("jdk6/test/package-summary.html");
         assertThat(packageSummary).exists();
         content = readFile(packageSummary);
         assertThat(content)
                 .contains("Top - Copyright &#169; All rights reserved.")
-                .contains("Header - Copyright &#169; All rights reserved.")
-                .contains("Footer - Copyright &#169; All rights reserved.");
+                .contains("Header - Copyright &#169; All rights reserved.");
+
+        // IBM dist of adopt-openj9 does not support the footer param
+        if (!System.getProperty("java.vm.name").contains("OpenJ9")) {
+            assertThat(content).contains("Footer - Copyright &#169; All rights 
reserved.");
+        }
     }
 
     /**

Reply via email to