Ignore failures when closing war files in tests

Update WarPackagingTests to ignore any IOExceptions when closing
created war files. Exceptions were sometimes thrown when running on a
Linux NTFS mount.

Fixes gh-3255
pull/3885/head
Matt Benson 10 years ago committed by Phillip Webb
parent 1e40bff174
commit 38e935ee5e

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

Loading…
Cancel
Save