From c828d44a84b1407179014a49fd391b82023e70c5 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sat, 25 Oct 2014 21:32:03 +0000 Subject: house keeping - fixes for sonarqube blockers git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1634255 13f79535-47bb-0310-9956-ffa450edef68 --- src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/excelant/java/org/apache') diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java index 23798e499e..4224969887 100644 --- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java +++ b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java @@ -175,7 +175,7 @@ public class ExcelAntTask extends Task { try { Class.forName("org.apache.poi.hssf.usermodel.HSSFWorkbook"); Class.forName("org.apache.poi.ss.usermodel.WorkbookFactory"); - } catch (Throwable e) { + } catch (Exception e) { throw new BuildException( "The for must include poi.jar and poi-ooxml.jar " + "if not in Ant's own classpath. Processing .xlsx spreadsheets requires " + -- cgit v1.2.3