diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2020-12-13 15:32:43 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2020-12-13 15:32:43 +0000 |
commit | c8940e7d1e24ef75481461102bf417e7920dc2e5 (patch) | |
tree | 06520b767e1bf6b848466aa8605afe724ef3853e /src/excelant/java/org/apache | |
parent | 83c6910dbd5501baf7330f6284e7527b0e7d0e37 (diff) | |
download | poi-c8940e7d1e24ef75481461102bf417e7920dc2e5.tar.gz poi-c8940e7d1e24ef75481461102bf417e7920dc2e5.zip |
#64979 - Change artifact names of poi-/ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/excelant/java/org/apache')
-rw-r--r-- | src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java | 32 |
1 files changed, 16 insertions, 16 deletions
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 16f2e5ff8e..4fc7a80508 100644 --- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java +++ b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java @@ -32,20 +32,20 @@ import org.apache.tools.ant.Task; * Ant task class for testing Excel workbook cells. */ public class ExcelAntTask extends Task { - + public static final String VERSION = "0.5.0" ; - + private String excelFileName ; - + private boolean failOnError; - + private ExcelAntWorkbookUtil workbookUtil ; - + private ExcelAntPrecision precision ; - + private LinkedList<ExcelAntTest> tests ; private LinkedList<ExcelAntUserDefinedFunction> functions ; - + public ExcelAntTask() { tests = new LinkedList<>() ; functions = new LinkedList<>() ; @@ -54,29 +54,29 @@ public class ExcelAntTask extends Task { public void addPrecision( ExcelAntPrecision prec ) { precision = prec ; } - + public void setFailOnError( boolean value ) { failOnError = value ; } public void setFileName( String fileName ) { excelFileName = fileName ; } - + public void addTest( ExcelAntTest testElement ) { tests.add( testElement ) ; } - + public void addUdf( ExcelAntUserDefinedFunction def ) { functions.add( def ) ; } - + @Override public void execute() throws BuildException { checkClassPath(); int totalCount = 0 ; int successCount = 0 ; - + StringBuilder versionBffr = new StringBuilder() ; versionBffr.append( "ExcelAnt version " ) ; versionBffr.append( VERSION ) ; @@ -88,11 +88,11 @@ public class ExcelAntTask extends Task { versionBffr.append( currYear ) ; } log( versionBffr.toString(), Project.MSG_INFO ) ; - + log( "Using input file: " + excelFileName, Project.MSG_INFO ) ; workbookUtil = ExcelAntWorkbookUtilFactory.getInstance(excelFileName); - + for (ExcelAntTest test : tests) { log("executing test: " + test.getName(), Project.MSG_DEBUG); @@ -133,7 +133,7 @@ public class ExcelAntTask extends Task { } workbookUtil = null; } - + /** * ExcelAnt depends on external libraries not included in the Ant distribution. @@ -147,7 +147,7 @@ public class ExcelAntTask extends Task { throw new BuildException( "The <classpath> for <excelant> must include poi.jar and poi-ooxml.jar " + "if not in Ant's own classpath. Processing .xlsx spreadsheets requires " + - "additional poi-ooxml-schemas.jar, xmlbeans.jar" , + "additional poi-ooxml-lite.jar, xmlbeans.jar" , e, getLocation()); } |