Skip to content

Commit b6dd907

Browse files
committed
PDFBOX-6087: delete .pdfbox.cache file during build before test to improve test coverage
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1929340 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6833a8c commit b6dd907

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pdfbox/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,26 @@
153153
</resource>
154154
</resources>
155155
<plugins>
156+
<plugin>
157+
<groupId>org.apache.maven.plugins</groupId>
158+
<artifactId>maven-antrun-plugin</artifactId>
159+
<version>3.2.0</version>
160+
<executions>
161+
<execution>
162+
<id>delete-user-file-during-test</id>
163+
<!-- Runs before the 'test' phase -->
164+
<phase>generate-test-resources</phase>
165+
<configuration>
166+
<target>
167+
<delete file="${user.home}/.pdfbox.cache" />
168+
</target>
169+
</configuration>
170+
<goals>
171+
<goal>run</goal>
172+
</goals>
173+
</execution>
174+
</executions>
175+
</plugin>
156176
<plugin>
157177
<artifactId>maven-surefire-plugin</artifactId>
158178
<configuration>

0 commit comments

Comments
 (0)