mirror of https://github.com/apache/poi.git
Open configuration file for integration-tests read-only to not fail if the file is opened by an Application locally
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911504 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a8b31c37a6
commit
ed12f1bb49
|
@ -46,7 +46,7 @@ public class StressMap {
|
|||
private final Pattern SCRATCH_HANDLER = Pattern.compile("(HSLF|HWPF|HSMF|HMEF)");
|
||||
|
||||
public void load(File mapFile) throws IOException {
|
||||
try (Workbook wb = WorkbookFactory.create(mapFile)) {
|
||||
try (Workbook wb = WorkbookFactory.create(mapFile, null, true)) {
|
||||
readExMap(wb.getSheet("Exceptions"));
|
||||
readHandlerMap(wb.getSheet("Handlers"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue