Browse Source

Merge pull request #3255 from mbenson/open-files

* gh-3255:
  Ignore failures when closing war files in tests
pull/3885/head
Phillip Webb 11 years ago
parent
commit
2b13736ae8
  1. 7
      spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java

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

@ -99,6 +99,13 @@ public class WarPackagingTests { @@ -99,6 +99,13 @@ public class WarPackagingTests {
checkWebInfLibProvidedEntries(war, expectedLibProvidedEntries);
checkWebInfLibEntries(war, expectedLibProvidedEntries);
try {
war.close();
}
catch (IOException ex) {
// Ignore
}
}
private void checkWebInfLibProvidedEntries(JarFile war, Set<String> expectedEntries)

Loading…
Cancel
Save