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
This commit is contained in:
Matt Benson 2015-06-16 18:00:59 -05:00 committed by Phillip Webb
parent 1e40bff174
commit 38e935ee5e

View File

@ -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)