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

pottlinger pushed a commit to branch fix/RAT-353
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git

commit cd52cd939a6fa57cc5b704db2fa23494cf21944f
Author: P. Ottlinger <[email protected]>
AuthorDate: Tue Jan 23 00:13:42 2024 +0100

    RAT-359, RAT-353: Manually copy dejavu font during site generation
---
 .buildtools/generateStagingSiteInWebpageRepo |  1 +
 pom.xml                                      | 41 ++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/.buildtools/generateStagingSiteInWebpageRepo 
b/.buildtools/generateStagingSiteInWebpageRepo
index f870f6cc..22ecbdff 100755
--- a/.buildtools/generateStagingSiteInWebpageRepo
+++ b/.buildtools/generateStagingSiteInWebpageRepo
@@ -15,3 +15,4 @@
 #
 mvn clean site:site site:stage
 cp -rvf target/staging/* ../creadur-site/rat0161/
+cp -rvf src/site/javadocFont/* ../creadur-site/rat0161/apidocs/
diff --git a/pom.xml b/pom.xml
index a6aa49a8..f22e8224 100644
--- a/pom.xml
+++ b/pom.xml
@@ -393,6 +393,8 @@ agnostic home for software distribution comprehension and 
audit tools.
               <exclude>apache-rat-tasks/src/test/resources/**</exclude>
               <exclude>**/iso-8859-1.html</exclude>
               <exclude>**/velocity.log</exclude>
+              <!-- RAT-353: until https://bugs.openjdk.org/browse/JDK-8227487 
is fixed we manually add the fonts -->
+              <exclude>**/src/site/javadocFont/**</exclude>
             </excludes>
           </configuration>
         </plugin>
@@ -458,6 +460,45 @@ agnostic home for software distribution comprehension and 
audit tools.
       </plugins>
     </pluginManagement>
     <plugins>
+      <!-- RAT-353, RAT-359: font files were generated from 
https://github.com/marchof/the-missing-javadoc-fonts
+      and are not copied over properly neither with maven-antrun nor with 
resources-plugin as Javadoc run empties the apidocs directory
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>copy-javadoc-font-resources-to-site</id>
+            <phase>install</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              
<outputDirectory>${project.build.directory}/site/apidocs/</outputDirectory>
+              <resources>
+                <resource>
+                  <directory>src/site/javadocFont</directory>
+                  <filtering>false</filtering>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
+          <execution>
+            <id>copy-javadoc-font-resources-to-staging</id>
+            <phase>install</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              
<outputDirectory>${project.build.directory}/staging/apidocs/</outputDirectory>
+              <resources>
+                <resource>
+                  <directory>src/site/javadocFont</directory>
+                  <filtering>false</filtering>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin-->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-antrun-plugin</artifactId>

Reply via email to