Skip to content

Commit 2b13736

Browse files
committed
Merge pull request #3255 from mbenson/open-files
* gh-3255: Ignore failures when closing war files in tests
2 parents 1e40bff + 38e935e commit 2b13736

File tree

1 file changed

+7
-0
lines changed
  • spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle

1 file changed

+7
-0
lines changed

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ private void checkWebInfEntriesForServletContainer(String servletContainer,
9999
checkWebInfLibProvidedEntries(war, expectedLibProvidedEntries);
100100

101101
checkWebInfLibEntries(war, expectedLibProvidedEntries);
102+
103+
try {
104+
war.close();
105+
}
106+
catch (IOException ex) {
107+
// Ignore
108+
}
102109
}
103110

104111
private void checkWebInfLibProvidedEntries(JarFile war, Set<String> expectedEntries)

0 commit comments

Comments
 (0)