Author: tilman
Date: Sat Oct 25 15:12:42 2025
New Revision: 1929340
Log:
PDFBOX-6087: delete .pdfbox.cache file during build before test to improve test
coverage
Modified:
pdfbox/trunk/pdfbox/pom.xml
Modified: pdfbox/trunk/pdfbox/pom.xml
==============================================================================
--- pdfbox/trunk/pdfbox/pom.xml Sat Oct 25 15:09:47 2025 (r1929339)
+++ pdfbox/trunk/pdfbox/pom.xml Sat Oct 25 15:12:42 2025 (r1929340)
@@ -154,6 +154,26 @@
</resources>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>3.2.0</version>
+ <executions>
+ <execution>
+ <id>delete-user-file-during-test</id>
+ <!-- Runs before the 'test' phase -->
+ <phase>generate-test-resources</phase>
+ <configuration>
+ <target>
+ <delete file="${user.home}/.pdfbox.cache" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${addmod} @{surefireArgLine} -Xmx768m</argLine>