2002-02-14 21:11:36 -05:00
|
|
|
<?xml version="1.0"?>
|
2009-10-15 16:25:34 -04:00
|
|
|
<!--
|
2007-01-02 07:50:54 -05:00
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
-->
|
2003-04-23 20:53:41 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
POI Build System. Written by:
|
|
|
|
|
|
|
|
Glen Stampoultzis glens at apache.org
|
|
|
|
|
2004-12-31 08:26:31 -05:00
|
|
|
Modified by:
|
2003-04-23 20:53:41 -04:00
|
|
|
|
2004-12-31 08:26:31 -05:00
|
|
|
Rainer Klute klute@rainer-klute.de
|
2009-10-04 06:25:53 -04:00
|
|
|
Bruno Girin brunogirin@gmail.com
|
2009-11-21 10:30:54 -05:00
|
|
|
Yegor Kozlov yegor at apache.org
|
2014-06-11 16:36:30 -04:00
|
|
|
Dominik Stadler centic at apache.org
|
2004-12-31 08:26:31 -05:00
|
|
|
|
|
|
|
This build was tested with ant 1.6.2 although it will probably work with
|
2009-10-15 16:25:34 -04:00
|
|
|
other versions. The following jar files should be available on the
|
2004-12-31 08:26:31 -05:00
|
|
|
classpath when running ant:
|
2003-04-23 20:53:41 -04:00
|
|
|
|
|
|
|
LIBRARY LOCATION
|
|
|
|
======= ========
|
2009-11-06 18:40:53 -05:00
|
|
|
junit(3.8+) http://www.junit.org
|
2003-04-23 20:53:41 -04:00
|
|
|
|
|
|
|
To build the documentation you will need to install forrest and set
|
2003-10-22 19:16:34 -04:00
|
|
|
the FORREST_HOME environment variable. Forrest 0.5.1 required.
|
2003-04-23 20:53:41 -04:00
|
|
|
|
2014-06-11 16:36:30 -04:00
|
|
|
Since POI 3.11 you will need JDK 1.6 or newer to build POI.
|
2008-01-21 13:00:30 -05:00
|
|
|
|
2008-03-22 14:55:14 -04:00
|
|
|
Some people may find the tests hang when run through Ant. If this
|
|
|
|
happens to you, try giving Ant some more memory when you run it, eg:
|
|
|
|
ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m" ant test
|
|
|
|
|
2003-04-23 20:53:41 -04:00
|
|
|
-->
|
2010-01-24 08:05:48 -05:00
|
|
|
<project name="POI Build" default="help" basedir="." xmlns:mvn="antlib:org.apache.maven.artifact.ant">
|
2003-04-23 20:53:41 -04:00
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<description>The Apache POI project Ant build.</description>
|
|
|
|
|
2014-01-15 23:56:26 -05:00
|
|
|
<property name="version.id" value="3.11-beta1"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
|
|
|
<property environment="env"/>
|
|
|
|
<!-- the repository to download jars from -->
|
|
|
|
<property name="repository.m2" value="http://repo1.maven.org"/>
|
|
|
|
|
|
|
|
<property name="main.lib" location="lib"/>
|
|
|
|
<property name="ooxml.lib" location="ooxml-lib"/>
|
|
|
|
<property name="forrest.home" value="${env.FORREST_HOME}"/>
|
|
|
|
|
|
|
|
<!-- compiler options options -->
|
2014-02-03 13:55:37 -05:00
|
|
|
<property name="jdk.version.source" value="1.6" description="JDK version of source code"/>
|
|
|
|
<property name="jdk.version.class" value="1.6" description="JDK version of generated class files"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<property name="compile.debug" value="true"/>
|
|
|
|
|
2011-06-25 06:56:46 -04:00
|
|
|
<!--
|
|
|
|
Logging is suppressed by default.
|
|
|
|
To redirect log output to console, run ant with -Dorg.apache.poi.util.POILogger=org.apache.poi.util.SystemOutLogger
|
|
|
|
-->
|
|
|
|
<property name="org.apache.poi.util.POILogger" value="org.apache.poi.util.NullLogger"/>
|
|
|
|
|
2010-06-13 02:26:14 -04:00
|
|
|
<!-- issue warnings if source code contains unmappable characters for encoding ASCII -->
|
|
|
|
<property name="java.source.encoding" value="ASCII"/>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<!--
|
|
|
|
JVM system properties for running tests,
|
|
|
|
user.language and user.country are required as we have locale-sensitive formatters
|
|
|
|
-->
|
2013-06-30 16:49:51 -04:00
|
|
|
<property name="testpattern" value="Test*"/>
|
2010-05-30 08:39:42 -04:00
|
|
|
<property name="poi.test.locale" value="-Duser.language=en -Duser.country=US"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<property name="POI.testdata.path" value="test-data"/>
|
|
|
|
<property name="java.awt.headless" value="true"/>
|
|
|
|
|
|
|
|
<!-- Main: -->
|
|
|
|
<property name="main.resource1.dir" value="src/resources/main"/>
|
|
|
|
<property name="main.src" location="src/java"/>
|
|
|
|
<property name="main.src.test" location="src/testcases"/>
|
|
|
|
<property name="main.documentation" value="src/documentation"/>
|
|
|
|
<property name="main.output.dir" location="build/classes"/>
|
|
|
|
<property name="main.output.test.dir" location="build/test-classes"/>
|
|
|
|
<property name="main.reports.test" location="build/test-results"/>
|
|
|
|
<property name="main.testokfile" location="build/main-testokfile.txt"/>
|
|
|
|
|
|
|
|
<!-- Scratchpad: -->
|
|
|
|
<property name="scratchpad.resource1.dir" value="src/resources/scratchpad"/>
|
|
|
|
<property name="scratchpad.src" location="src/scratchpad/src"/>
|
|
|
|
<property name="scratchpad.src.test" location="src/scratchpad/testcases"/>
|
|
|
|
<property name="scratchpad.reports.test" location="build/scratchpad-test-results"/>
|
|
|
|
<property name="scratchpad.output.dir" location="build/scratchpad-classes"/>
|
|
|
|
<property name="scratchpad.output.test.dir" location="build/scratchpad-test-classes"/>
|
|
|
|
<property name="scratchpad.testokfile" location="build/scratchpad-testokfile.txt"/>
|
|
|
|
|
|
|
|
<!-- Examples: -->
|
|
|
|
<property name="examples.src" location="src/examples/src"/>
|
|
|
|
<property name="examples.output.dir" location="build/examples-classes"/>
|
|
|
|
|
|
|
|
<!-- OOXML support: -->
|
|
|
|
<property name="ooxml.src" location="src/ooxml/java"/>
|
2011-11-07 04:12:16 -05:00
|
|
|
<property name="ooxml.resource1.dir" value="src/resources/ooxml"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<property name="ooxml.src.test" location="src/ooxml/testcases"/>
|
|
|
|
<property name="ooxml.reports.test" location="build/ooxml-test-results"/>
|
|
|
|
<property name="ooxml.output.dir" location="build/ooxml-classes"/>
|
|
|
|
<property name="ooxml.output.test.dir" location="build/ooxml-test-classes"/>
|
|
|
|
<property name="ooxml.testokfile" location="build/ooxml-testokfile.txt"/>
|
|
|
|
<property name="ooxml.lite.output.dir" location="build/ooxml-lite-classes"/>
|
2013-12-24 18:13:21 -05:00
|
|
|
<property name="ooxml.encryption.xsd.dir" location="src/ooxml/resources/org/apache/poi/poifs/crypt"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
2011-02-18 15:04:50 -05:00
|
|
|
<!-- Excelant: -->
|
|
|
|
<property name="excelant.resource.dir" value="src/excelant/resources"/>
|
|
|
|
<property name="excelant.src" location="src/excelant/java"/>
|
|
|
|
<property name="excelant.src.test" location="src/excelant/testcases"/>
|
|
|
|
<property name="excelant.reports.test" location="build/excelant-test-results"/>
|
|
|
|
<property name="excelant.output.dir" location="build/excelant-classes"/>
|
|
|
|
<property name="excelant.output.test.dir" location="build/excelant-test-classes"/>
|
|
|
|
<property name="excelant.testokfile" location="build/excelant-testokfile.txt"/>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<!-- jars in the /lib directory, see the fetch-jars target-->
|
2014-02-03 13:54:44 -05:00
|
|
|
<property name="main.commons-logging.jar" location="${main.lib}/commons-logging-1.1.3.jar"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<property name="main.commons-logging.url"
|
2014-02-03 13:54:44 -05:00
|
|
|
value="${repository.m2}/maven2/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar"/>
|
2014-02-01 12:21:21 -05:00
|
|
|
<property name="main.commons-codec.jar" location="${main.lib}/commons-codec-1.9.jar"/>
|
2011-05-10 06:38:17 -04:00
|
|
|
<property name="main.commons-codec.url"
|
2014-02-01 12:21:21 -05:00
|
|
|
value="${repository.m2}/maven2/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/>
|
|
|
|
<property name="main.log4j.jar" location="${main.lib}/log4j-1.2.17.jar"/>
|
|
|
|
<property name="main.log4j.url" value="${repository.m2}/maven2/log4j/log4j/1.2.17/log4j-1.2.17.jar"/>
|
2013-06-30 16:49:51 -04:00
|
|
|
<property name="main.junit.jar" location="${main.lib}/junit-4.11.jar"/>
|
|
|
|
<property name="main.junit.url" value="${repository.m2}/maven2/junit/junit/4.11/junit-4.11.jar"/>
|
|
|
|
<property name="main.hamcrest.jar" location="${main.lib}/hamcrest-core-1.3.jar"/>
|
|
|
|
<property name="main.hamcrest.url" value="${repository.m2}/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/>
|
2014-05-29 05:16:29 -04:00
|
|
|
<property name="main.ant.jar" location="${main.lib}/ant-1.9.4.jar"/>
|
|
|
|
<property name="main.ant.url" value="${repository.m2}/maven2/org/apache/ant/ant/1.9.4/ant-1.9.4.jar"/>
|
|
|
|
<property name="main.antlauncher.jar" location="${main.lib}/ant-launcher-1.9.4.jar"/>
|
|
|
|
<property name="main.antlauncher.url" value="${repository.m2}/maven2/org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4.jar"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
|
|
|
<!-- jars in the lib-ooxml directory, see the fetch-ooxml-jars target-->
|
|
|
|
<property name="ooxml.dom4j.jar" location="${ooxml.lib}/dom4j-1.6.1.jar"/>
|
|
|
|
<property name="ooxml.dom4j.url" value="${repository.m2}/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/>
|
2014-06-12 03:08:21 -04:00
|
|
|
<property name="ooxml.xmlbeans.jar" location="${ooxml.lib}/xmlbeans-2.3.0.jar"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<property name="ooxml.xmlbeans.url"
|
2014-06-12 03:08:21 -04:00
|
|
|
value="${repository.m2}/maven2/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<!-- coverage libs -->
|
2014-07-02 10:48:59 -04:00
|
|
|
<property name="jacoco.zip" location="${main.lib}/jacoco-0.7.1.201405082137.zip"/>
|
|
|
|
<property name="jacoco.url" value="${repository.m2}/maven2/org/jacoco/jacoco/0.7.1.201405082137/jacoco-0.7.1.201405082137.zip"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
<property name="asm.jar" location="${main.lib}/asm-all-4.0.jar"/>
|
|
|
|
<property name="asm.url" value="${repository.m2}/maven2/org/ow2/asm/asm-all/4.0/asm-all-4.0.jar"/>
|
|
|
|
|
2014-01-20 14:25:22 -05:00
|
|
|
<!-- license checks -->
|
|
|
|
<property name="rat.jar" location="${main.lib}/apache-rat-0.10.jar"/>
|
|
|
|
<property name="rat.url" value="${repository.m2}/maven2/org/apache/rat/apache-rat/0.10/apache-rat-0.10.jar"/>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<!-- See http://www.ecma-international.org/publications/standards/Ecma-376.htm -->
|
|
|
|
<!-- "Copy these file(s), free of charge" -->
|
|
|
|
<property name="ooxml.xsds.ozip" location="${ooxml.lib}/OfficeOpenXML-Part4.zip"/>
|
|
|
|
<property name="ooxml.xsds.izip" location="${ooxml.lib}/OfficeOpenXML-XMLSchema.zip"/>
|
|
|
|
<property name="ooxml.xsds.url"
|
|
|
|
value="http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip"/>
|
|
|
|
<property name="ooxml.xsds.src.dir" location="build/ooxml-xsds-src"/>
|
2010-06-22 07:08:21 -04:00
|
|
|
<property name="ooxml.xsds.src.jar" location="${ooxml.lib}/ooxml-schemas-src-1.1.jar"/>
|
|
|
|
<property name="ooxml.xsds.jar" location="${ooxml.lib}/ooxml-schemas-1.1.jar"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
2013-12-24 18:13:21 -05:00
|
|
|
<property name="ooxml.encryption.src.dir" location="build/ooxml-encryption-src"/>
|
|
|
|
<property name="ooxml.encryption.src.jar" location="${ooxml.lib}/ooxml-encryption-src-1.1.jar"/>
|
|
|
|
<property name="ooxml.encryption.jar" location="${ooxml.lib}/ooxml-encryption-1.1.jar"/>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<property name="maven.ooxml.xsds.version.id" value="1.0"/>
|
|
|
|
<property name="maven.ooxml.xsds.jar" value="ooxml-schemas-${maven.ooxml.xsds.version.id}.jar"/>
|
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<!-- Coverage -->
|
|
|
|
<property name="coverage.dir" value="build/coverage"/>
|
|
|
|
<!-- Exclude some uninteresting classes from coverage-instrumentation as we do not want to measure coverage in those packages anyway -->
|
|
|
|
<property name="coverage.excludes" value="org.openxmlformats.*:com.*:org.junit.*:junit.*:"/>
|
|
|
|
|
2014-01-20 14:25:22 -05:00
|
|
|
<!-- Apache RAT license check properties -->
|
|
|
|
<property name="rat.reportdir" value="build/rat"/>
|
|
|
|
<property name="rat.report" value="${rat.reportdir}/report.txt"/>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<!-- build and distro settings -->
|
|
|
|
<property name="jar.name" value="poi"/>
|
|
|
|
<property name="build.site" location="build/tmp/site/build/site"/>
|
|
|
|
<property name="build.site.src" location="build/tmp/site"/>
|
|
|
|
<property name="apidocs.report.dir" location="${build.site}/apidocs"/>
|
|
|
|
<property name="dist.dir" location="build/dist"/>
|
|
|
|
<property name="halt.on.test.failure" value="true"/>
|
|
|
|
|
|
|
|
<propertyset id="junit.properties">
|
|
|
|
<propertyref name="POI.testdata.path"/>
|
|
|
|
<propertyref name="java.awt.headless"/>
|
2011-06-25 06:56:46 -04:00
|
|
|
<propertyref name="org.apache.poi.util.POILogger"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
</propertyset>
|
2003-04-23 20:53:41 -04:00
|
|
|
|
|
|
|
<path id="main.classpath">
|
2011-02-18 15:04:50 -05:00
|
|
|
<pathelement location="${main.commons-logging.jar}"/>
|
2011-05-10 06:38:17 -04:00
|
|
|
<pathelement location="${main.commons-codec.jar}"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<pathelement location="${main.log4j.jar}"/>
|
|
|
|
<pathelement location="${main.junit.jar}"/>
|
2013-06-30 16:49:51 -04:00
|
|
|
<pathelement location="${main.hamcrest.jar}"/>
|
2008-01-21 13:00:30 -05:00
|
|
|
</path>
|
|
|
|
|
2003-04-23 20:53:41 -04:00
|
|
|
<path id="scratchpad.classpath">
|
|
|
|
<path refid="main.classpath"/>
|
|
|
|
<pathelement location="${main.output.dir}"/>
|
|
|
|
</path>
|
|
|
|
|
2007-12-26 12:39:15 -05:00
|
|
|
<path id="ooxml.classpath">
|
2009-11-21 10:30:54 -05:00
|
|
|
<pathelement location="${ooxml.dom4j.jar}"/>
|
|
|
|
<pathelement location="${ooxml.xmlbeans.jar}"/>
|
2010-06-28 08:56:57 -04:00
|
|
|
<pathelement location="${ooxml.xsds.jar}"/>
|
2007-12-26 12:39:15 -05:00
|
|
|
<path refid="main.classpath"/>
|
2008-11-08 08:21:42 -05:00
|
|
|
<pathelement location="${main.output.dir}"/>
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646313 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r646312 | nick | 2008-04-09 13:46:42 +0100 (Wed, 09 Apr 2008) | 1 line
Provide a common ole2 implementation of POITextExtractor, which gives access to the document metadata
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@646818 13f79535-47bb-0310-9956-ffa450edef68
2008-04-10 10:26:36 -04:00
|
|
|
<pathelement location="${scratchpad.output.dir}"/>
|
2013-12-24 18:13:21 -05:00
|
|
|
<pathelement location="${ooxml.encryption.jar}"/>
|
2007-12-26 12:39:15 -05:00
|
|
|
</path>
|
|
|
|
|
2008-03-21 09:41:45 -04:00
|
|
|
<path id="test.classpath">
|
|
|
|
<path refid="main.classpath"/>
|
|
|
|
<pathelement location="${main.output.dir}"/>
|
|
|
|
<pathelement location="${main.output.test.dir}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
</path>
|
|
|
|
|
|
|
|
<path id="test.scratchpad.classpath">
|
|
|
|
<path refid="scratchpad.classpath"/>
|
|
|
|
<pathelement location="${main.output.test.dir}"/>
|
|
|
|
<pathelement location="${scratchpad.output.dir}"/>
|
|
|
|
<pathelement location="${scratchpad.output.test.dir}"/>
|
2008-03-21 09:41:45 -04:00
|
|
|
</path>
|
|
|
|
|
|
|
|
<path id="test.ooxml.classpath">
|
|
|
|
<path refid="ooxml.classpath"/>
|
|
|
|
<pathelement location="${ooxml.output.dir}"/>
|
|
|
|
<pathelement location="${ooxml.output.test.dir}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<pathelement location="${main.output.test.dir}"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<path id="ooxml-lite.classpath">
|
|
|
|
<pathelement location="${ooxml.dom4j.jar}"/>
|
|
|
|
<pathelement location="${ooxml.xmlbeans.jar}"/>
|
2010-06-28 08:56:57 -04:00
|
|
|
<pathelement location="build/ooxml-xsds-lite"/> <!-- instead of ooxml-xsds.jar use the filtered classes-->
|
2009-11-21 10:30:54 -05:00
|
|
|
<path refid="main.classpath"/>
|
|
|
|
<pathelement location="${main.output.dir}"/>
|
|
|
|
<pathelement location="${scratchpad.output.dir}"/>
|
|
|
|
<path refid="ooxml.classpath"/>
|
|
|
|
<pathelement location="${ooxml.output.dir}"/>
|
|
|
|
<pathelement location="${ooxml.output.test.dir}"/>
|
|
|
|
<pathelement location="${main.output.test.dir}"/>
|
2008-03-21 09:41:45 -04:00
|
|
|
</path>
|
|
|
|
|
2007-12-26 12:39:15 -05:00
|
|
|
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642566,642568-642574,642576 via svnmerge from
https://svn.apache.org/repos/asf/poi/trunk
........
r642566 | nick | 2008-03-29 17:45:28 +0000 (Sat, 29 Mar 2008) | 1 line
Move the missing record aware eventusermodel code out of scratchpad
........
r642571 | nick | 2008-03-29 18:11:48 +0000 (Sat, 29 Mar 2008) | 1 line
Merge several bug tests into one file
........
r642574 | nick | 2008-03-29 18:23:33 +0000 (Sat, 29 Mar 2008) | 1 line
Move the FormulaEvaluator code out of scratchpad
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@642591 13f79535-47bb-0310-9956-ffa450edef68
2008-03-29 15:36:53 -04:00
|
|
|
<path id="examples.classpath">
|
|
|
|
<path refid="main.classpath"/>
|
|
|
|
<pathelement location="${main.output.dir}"/>
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-651991,651993-652284,652286-652287,652289,652291,652293-652297,652299-652328,652330-652425,652427-652445,652447-652560,652562-652933,652935,652937-652993,652995-653116,653118-653124,653126-653483,653487-653519,653522-653550,653552-653607,653609-653667,653669-653674,653676-653814,653817-653830,653832-653891,653893-653944,653946-654055,654057-654355,654357-654365,654367-654648,654651-655215,655217-655277,655279-655281,655283-655911,655913-656212,656214,656216-656251,656253-656698,656700-656756,656758-656892,656894-657135,657137-657165,657168-657179,657181-657354,657356-657357,657359-657701,657703-657874,657876-658032,658034-658284,658286,658288-658301,658303-658307,658309-659484 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r658322 | nick | 2008-05-20 17:37:15 +0100 (Tue, 20 May 2008) | 1 line
Fix bug #44977 - Support for AM/PM in excel date formats
........
r658336 | nick | 2008-05-20 17:51:49 +0100 (Tue, 20 May 2008) | 1 line
Test which seems to show that bug #44996 is invalid, but not completely sure
........
r658349 | nick | 2008-05-20 17:57:20 +0100 (Tue, 20 May 2008) | 1 line
Patch from bug #45001 - Partial fix for HWPF Range.insertBefore() and Range.delete() with unicode characters
........
r658350 | nick | 2008-05-20 18:12:08 +0100 (Tue, 20 May 2008) | 1 line
Put abstract write(OutputStream) method on POIDocument
........
r658352 | nick | 2008-05-20 18:17:16 +0100 (Tue, 20 May 2008) | 1 line
Patch from bug #45003 - Support embeded HDGF visio documents
........
r658833 | josh | 2008-05-21 20:57:40 +0100 (Wed, 21 May 2008) | 1 line
improved toString and refactored toFormulaString on Area(3D)Ptg
........
r658984 | josh | 2008-05-22 04:00:29 +0100 (Thu, 22 May 2008) | 1 line
Fixed compiler errors. Other improvements for type safety and immutability.
........
r658986 | josh | 2008-05-22 04:26:25 +0100 (Thu, 22 May 2008) | 1 line
Follow on from bug 44675 - regenerated functionMetadata.txt from new ooo excelfileformat.odt
........
r659067 | nick | 2008-05-22 10:51:44 +0100 (Thu, 22 May 2008) | 1 line
Example for finding hslf sounds from Yegor
........
r659403 | josh | 2008-05-23 04:56:31 +0100 (Fri, 23 May 2008) | 1 line
Fix for 45066 - sheet encoding size mismatch problems
........
r659429 | josh | 2008-05-23 06:28:54 +0100 (Fri, 23 May 2008) | 1 line
Fix for bug 45046 - allowed DEFINEDNAME records without EXTERNALBOOK records
........
r659452 | josh | 2008-05-23 07:43:51 +0100 (Fri, 23 May 2008) | 1 line
Bug 45041 - improved FormulaParser parse error messages
........
r659455 | josh | 2008-05-23 07:54:46 +0100 (Fri, 23 May 2008) | 1 line
Bug 45025 - improved FormulaParser parse error messages (r659452 had wrong bug number)
........
r659462 | josh | 2008-05-23 08:42:14 +0100 (Fri, 23 May 2008) | 1 line
Marked out test failure which was fixed by patch for bug 39903
........
r659478 | josh | 2008-05-23 09:55:48 +0100 (Fri, 23 May 2008) | 1 line
Fix for bug 35925 - Missing HSSFColor.TAN from HashTables returned by getIndexHash() and getTripletHash()
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@659485 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 05:48:23 -04:00
|
|
|
<pathelement location="${scratchpad.output.dir}"/>
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642566,642568-642574,642576 via svnmerge from
https://svn.apache.org/repos/asf/poi/trunk
........
r642566 | nick | 2008-03-29 17:45:28 +0000 (Sat, 29 Mar 2008) | 1 line
Move the missing record aware eventusermodel code out of scratchpad
........
r642571 | nick | 2008-03-29 18:11:48 +0000 (Sat, 29 Mar 2008) | 1 line
Merge several bug tests into one file
........
r642574 | nick | 2008-03-29 18:23:33 +0000 (Sat, 29 Mar 2008) | 1 line
Move the FormulaEvaluator code out of scratchpad
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@642591 13f79535-47bb-0310-9956-ffa450edef68
2008-03-29 15:36:53 -04:00
|
|
|
</path>
|
2005-01-25 15:08:18 -05:00
|
|
|
|
2011-02-18 15:04:50 -05:00
|
|
|
<path id="excelant.classpath">
|
|
|
|
<path refid="ooxml.classpath"/>
|
|
|
|
<pathelement location="${main.ant.jar}"/>
|
|
|
|
<pathelement location="${ooxml.output.dir}"/>
|
|
|
|
</path>
|
|
|
|
<path id="test.excelant.classpath">
|
|
|
|
<path refid="ooxml.classpath"/>
|
|
|
|
<pathelement location="${ooxml.output.dir}"/>
|
|
|
|
<pathelement location="${excelant.output.dir}"/>
|
|
|
|
<pathelement location="${excelant.output.test.dir}"/>
|
|
|
|
<pathelement location="${main.output.test.dir}"/>
|
|
|
|
</path>
|
2005-01-01 18:39:42 -05:00
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<path id="lib.jacoco">
|
|
|
|
<fileset dir="lib">
|
|
|
|
<include name="org.jacoco*.jar" />
|
|
|
|
<include name="asm-all-4*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<!-- Prints POI's Ant usage help -->
|
|
|
|
<target name="help" description="Prints Apache POI's Ant usage help">
|
2009-11-23 03:43:04 -05:00
|
|
|
<echo>
|
|
|
|
This is POI ${version.id}
|
|
|
|
Java Version ${ant.java.version}
|
|
|
|
Timestamp ${DSTAMP}
|
|
|
|
The main targets of interest are:
|
|
|
|
- clean Erase all build work products (ie. everything in the build directory)
|
2010-10-06 03:58:51 -04:00
|
|
|
- compile Compile all files from main, ooxml and scratchpad
|
|
|
|
- test Run all unit tests from main, ooxml and scratchpad
|
2009-11-23 03:43:04 -05:00
|
|
|
- jar Produce jar files
|
|
|
|
- site Generate all documentation (Requires Apache Forrest)
|
|
|
|
- dist Create a distribution (Requires Apache Forrest)
|
2009-11-21 10:30:54 -05:00
|
|
|
</echo>
|
|
|
|
</target>
|
2005-01-01 18:39:42 -05:00
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<tstamp>
|
|
|
|
<format property="tstamp.year" pattern="yyyy"/>
|
|
|
|
</tstamp>
|
2005-01-01 18:39:42 -05:00
|
|
|
|
2008-11-07 04:29:54 -05:00
|
|
|
<target name="init" depends="fetch-jars,fetch-ooxml-jars">
|
2003-04-23 20:53:41 -04:00
|
|
|
<mkdir dir="build"/>
|
|
|
|
<mkdir dir="${main.output.dir}"/>
|
|
|
|
<mkdir dir="${main.output.test.dir}"/>
|
|
|
|
<mkdir dir="${main.reports.test}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<mkdir dir="${scratchpad.output.dir}"/>
|
|
|
|
<mkdir dir="${scratchpad.output.test.dir}"/>
|
2003-04-23 20:53:41 -04:00
|
|
|
<mkdir dir="${scratchpad.reports.test}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<mkdir dir="${ooxml.output.dir}"/>
|
|
|
|
<mkdir dir="${ooxml.output.test.dir}"/>
|
2007-12-27 06:52:12 -05:00
|
|
|
<mkdir dir="${ooxml.reports.test}"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<mkdir dir="${excelant.output.dir}"/>
|
|
|
|
<mkdir dir="${excelant.output.test.dir}"/>
|
|
|
|
<mkdir dir="${excelant.reports.test}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<mkdir dir="${examples.output.dir}"/>
|
2003-04-23 20:53:41 -04:00
|
|
|
<mkdir dir="${dist.dir}"/>
|
2009-11-23 03:43:04 -05:00
|
|
|
<mkdir dir="${build.site}"/>
|
2003-04-23 20:53:41 -04:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
|
|
|
</target>
|
|
|
|
|
2008-11-07 04:29:54 -05:00
|
|
|
<target name="testexist">
|
2009-11-21 10:30:54 -05:00
|
|
|
<echo message="Testing for ${destfile}" level="debug"/>
|
|
|
|
<available file="${destfile}" property="exist"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
</target>
|
|
|
|
<target name="downloadfile" unless="exist" depends="testexist">
|
2009-11-21 10:30:54 -05:00
|
|
|
<get src="${sourcefile}" dest="${destfile}"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
</target>
|
|
|
|
|
2003-04-23 20:53:41 -04:00
|
|
|
<target name="check-jars">
|
|
|
|
<condition property="jars.present">
|
2003-07-14 08:11:12 -04:00
|
|
|
<or>
|
|
|
|
<and>
|
2008-11-07 04:29:54 -05:00
|
|
|
<available file="${main.commons-logging.jar}"/>
|
2011-05-10 06:38:17 -04:00
|
|
|
<available file="${main.commons-codec.jar}"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
<available file="${main.log4j.jar}"/>
|
|
|
|
<available file="${main.junit.jar}"/>
|
2013-06-30 16:49:51 -04:00
|
|
|
<available file="${main.hamcrest.jar}"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<available file="${main.ant.jar}"/>
|
2014-05-29 05:16:29 -04:00
|
|
|
<available file="${main.antlauncher.jar}"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
<available file="${asm.jar}"/>
|
|
|
|
<available file="${jacoco.zip}"/>
|
2014-01-20 14:25:22 -05:00
|
|
|
<available file="${rat.jar}"/>
|
2003-07-14 08:11:12 -04:00
|
|
|
</and>
|
|
|
|
<isset property="disconnected"/>
|
|
|
|
</or>
|
2003-04-23 20:53:41 -04:00
|
|
|
</condition>
|
|
|
|
</target>
|
|
|
|
|
2008-11-07 04:29:54 -05:00
|
|
|
<target name="fetch-jars" depends="check-jars" unless="jars.present"
|
2009-11-21 10:30:54 -05:00
|
|
|
description="Fetches needed JAR files from the Internet">
|
|
|
|
<mkdir dir="${main.lib}"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
<antcall target="downloadfile">
|
2009-11-21 10:30:54 -05:00
|
|
|
<param name="sourcefile" value="${main.commons-logging.url}"/>
|
|
|
|
<param name="destfile" value="${main.commons-logging.jar}"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
</antcall>
|
2011-05-10 06:38:17 -04:00
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${main.commons-codec.url}"/>
|
|
|
|
<param name="destfile" value="${main.commons-codec.jar}"/>
|
|
|
|
</antcall>
|
2008-11-07 04:29:54 -05:00
|
|
|
<antcall target="downloadfile">
|
2009-11-21 10:30:54 -05:00
|
|
|
<param name="sourcefile" value="${main.log4j.url}"/>
|
|
|
|
<param name="destfile" value="${main.log4j.jar}"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
</antcall>
|
|
|
|
<antcall target="downloadfile">
|
2009-11-21 10:30:54 -05:00
|
|
|
<param name="sourcefile" value="${main.junit.url}"/>
|
|
|
|
<param name="destfile" value="${main.junit.jar}"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
</antcall>
|
2013-06-30 16:49:51 -04:00
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${main.hamcrest.url}"/>
|
|
|
|
<param name="destfile" value="${main.hamcrest.jar}"/>
|
|
|
|
</antcall>
|
2011-02-18 15:04:50 -05:00
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${main.ant.url}"/>
|
|
|
|
<param name="destfile" value="${main.ant.jar}"/>
|
|
|
|
</antcall>
|
2014-05-29 05:16:29 -04:00
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${main.antlauncher.url}"/>
|
|
|
|
<param name="destfile" value="${main.antlauncher.jar}"/>
|
|
|
|
</antcall>
|
2013-08-04 12:38:01 -04:00
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${asm.url}"/>
|
|
|
|
<param name="destfile" value="${asm.jar}"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${jacoco.url}"/>
|
|
|
|
<param name="destfile" value="${jacoco.zip}"/>
|
|
|
|
</antcall>
|
|
|
|
<unzip src="${jacoco.zip}" dest=".">
|
|
|
|
<patternset>
|
|
|
|
<include name="lib/*.jar"/>
|
|
|
|
</patternset>
|
|
|
|
</unzip>
|
2014-01-20 14:25:22 -05:00
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${rat.url}"/>
|
|
|
|
<param name="destfile" value="${rat.jar}"/>
|
|
|
|
</antcall>
|
2008-11-07 04:29:54 -05:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="check-ooxml-jars">
|
|
|
|
<condition property="ooxml.jars.present">
|
|
|
|
<or>
|
|
|
|
<and>
|
|
|
|
<available file="${ooxml.dom4j.jar}"/>
|
|
|
|
<available file="${ooxml.xmlbeans.jar}"/>
|
2010-06-28 08:56:57 -04:00
|
|
|
<available file="${ooxml.xsds.jar}"/>
|
2008-11-07 04:29:54 -05:00
|
|
|
</and>
|
|
|
|
<isset property="disconnected"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
</target>
|
|
|
|
<target name="fetch-ooxml-jars" depends="check-ooxml-jars" unless="ooxml.jars.present">
|
2009-11-21 10:30:54 -05:00
|
|
|
<mkdir dir="${ooxml.lib}"/>
|
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${ooxml.dom4j.url}"/>
|
|
|
|
<param name="destfile" value="${ooxml.dom4j.jar}"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="${ooxml.xmlbeans.url}"/>
|
|
|
|
<param name="destfile" value="${ooxml.xmlbeans.jar}"/>
|
|
|
|
</antcall>
|
2003-04-23 20:53:41 -04:00
|
|
|
</target>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<target name="check-ooxml-xsds">
|
2007-12-26 12:39:15 -05:00
|
|
|
<condition property="ooxml-xsds.present">
|
|
|
|
<or>
|
|
|
|
<and>
|
|
|
|
<available file="${ooxml.xsds.izip}"/>
|
|
|
|
</and>
|
|
|
|
<isset property="disconnected"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
2009-11-21 10:30:54 -05:00
|
|
|
</target>
|
2007-12-26 12:39:15 -05:00
|
|
|
<target name="fetch-ooxml-xsds" unless="ooxml-xsds.present"
|
2010-04-26 12:46:08 -04:00
|
|
|
depends="check-ooxml-xsds"
|
2009-11-21 10:30:54 -05:00
|
|
|
description="Fetches needed OOXML xsd files from the Internet">
|
2007-12-26 12:39:15 -05:00
|
|
|
<get src="${ooxml.xsds.url}" dest="${ooxml.xsds.ozip}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<unzip src="${ooxml.xsds.ozip}" dest="${ooxml.lib}">
|
|
|
|
<patternset>
|
|
|
|
<include name="OfficeOpenXML-XMLSchema.zip"/>
|
|
|
|
</patternset>
|
|
|
|
</unzip>
|
|
|
|
</target>
|
2010-04-26 12:46:08 -04:00
|
|
|
<target name="check-compiled-ooxml-xsds" depends="fetch-ooxml-xsds">
|
2007-12-27 04:12:57 -05:00
|
|
|
<condition property="ooxml-compiled-xsds.present">
|
|
|
|
<or>
|
2013-12-24 18:13:21 -05:00
|
|
|
<available file="${ooxml.xsds.jar}"/>
|
|
|
|
<isset property="disconnected"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
<condition property="ooxml-compiled-encryption-xsds.present">
|
|
|
|
<or>
|
|
|
|
<available file="${ooxml.encryption.jar}"/>
|
2007-12-27 04:12:57 -05:00
|
|
|
<isset property="disconnected"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
2009-11-21 10:30:54 -05:00
|
|
|
</target>
|
|
|
|
<target name="compile-ooxml-xsds" unless="ooxml-compiled-xsds.present"
|
2010-04-26 12:46:08 -04:00
|
|
|
depends="check-jars,fetch-jars,check-compiled-ooxml-xsds"
|
2009-11-21 10:30:54 -05:00
|
|
|
description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
|
|
|
|
<property name="ooxml.xsds.tmp.dir" location="build/ooxml-xsds"/>
|
|
|
|
<mkdir dir="${ooxml.xsds.tmp.dir}"/>
|
|
|
|
|
|
|
|
<taskdef name="xmlbean"
|
|
|
|
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
2014-04-15 12:29:05 -04:00
|
|
|
classpath="${ooxml.xmlbeans.jar}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
2010-08-10 10:58:16 -04:00
|
|
|
<!-- We need a fair amount of memory to compile the xml schema, -->
|
|
|
|
<!-- but limit it in case it goes wrong! -->
|
|
|
|
<!-- Pick the right amount based on 32 vs 64 bit jvm -->
|
|
|
|
<condition property="ooxml.memory" value="768m" else="512m">
|
|
|
|
<equals arg1="${sun.arch.data.model}" arg2="64" />
|
|
|
|
</condition>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<unzip src="${ooxml.xsds.izip}" dest="${ooxml.xsds.tmp.dir}"/>
|
|
|
|
<!--
|
|
|
|
schema="build/ooxml-xsds/"
|
|
|
|
schema="build/ooxml-xsds/sml-workbook.xsd"
|
|
|
|
-->
|
|
|
|
<xmlbean
|
|
|
|
schema="${ooxml.xsds.tmp.dir}"
|
|
|
|
srcgendir="${ooxml.xsds.src.dir}"
|
|
|
|
optimize="yes"
|
|
|
|
destfile="${ooxml.xsds.jar}"
|
2010-06-22 07:08:21 -04:00
|
|
|
javasource="1.5"
|
2009-11-21 10:30:54 -05:00
|
|
|
failonerror="true"
|
|
|
|
fork="true"
|
2010-08-10 10:58:16 -04:00
|
|
|
memoryMaximumSize="${ooxml.memory}"
|
2009-11-21 10:30:54 -05:00
|
|
|
>
|
|
|
|
<classpath refid="ooxml.classpath"/>
|
|
|
|
</xmlbean>
|
|
|
|
|
|
|
|
<!-- Now make a jar of the schema sources -->
|
|
|
|
<jar
|
|
|
|
basedir="${ooxml.xsds.src.dir}"
|
|
|
|
destfile="${ooxml.xsds.src.jar}"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
2013-12-24 18:13:21 -05:00
|
|
|
<target name="compile-ooxml-encryption-xsds" unless="ooxml-compiled-encryption-xsds.present"
|
|
|
|
depends="check-jars,fetch-jars,check-compiled-ooxml-xsds"
|
|
|
|
description="Compiles the OOXML encryption xsd files into XmlBeans">
|
|
|
|
<taskdef name="xmlbean"
|
|
|
|
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
2014-04-15 12:29:05 -04:00
|
|
|
classpath="${ooxml.xmlbeans.jar}"/>
|
2013-12-24 18:13:21 -05:00
|
|
|
|
|
|
|
<!-- We need a fair amount of memory to compile the xml schema, -->
|
|
|
|
<!-- but limit it in case it goes wrong! -->
|
|
|
|
<!-- Pick the right amount based on 32 vs 64 bit jvm -->
|
|
|
|
<condition property="ooxml.memory" value="768m" else="512m">
|
|
|
|
<equals arg1="${sun.arch.data.model}" arg2="64" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<xmlbean
|
|
|
|
schema="${ooxml.encryption.xsd.dir}"
|
|
|
|
srcgendir="${ooxml.encryption.src.dir}"
|
|
|
|
optimize="yes"
|
|
|
|
destfile="${ooxml.encryption.jar}"
|
|
|
|
javasource="1.5"
|
|
|
|
failonerror="true"
|
|
|
|
fork="true"
|
|
|
|
memoryMaximumSize="${ooxml.memory}"
|
|
|
|
>
|
|
|
|
<classpath refid="ooxml.classpath"/>
|
|
|
|
</xmlbean>
|
|
|
|
|
|
|
|
<!-- Now make a jar of the schema sources -->
|
|
|
|
<jar
|
|
|
|
basedir="${ooxml.encryption.src.dir}"
|
|
|
|
destfile="${ooxml.encryption.src.jar}"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<target name="compile" depends="init, compile-main,
|
2011-02-18 15:04:50 -05:00
|
|
|
compile-scratchpad, compile-examples, compile-excelant"
|
2010-10-06 03:58:51 -04:00
|
|
|
description="Compiles the POI main classes, scratchpad and examples"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
2009-11-23 03:43:04 -05:00
|
|
|
<target name="compile-all" depends="compile,compile-ooxml-lite"/>
|
|
|
|
|
2014-02-14 19:19:50 -05:00
|
|
|
<target name="compile-main" depends="init">
|
2009-11-21 10:30:54 -05:00
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${main.output.dir}"
|
|
|
|
srcdir="${main.src}"
|
|
|
|
debug="${compile.debug}"
|
2010-06-13 02:26:14 -04:00
|
|
|
encoding="${java.source.encoding}"
|
2010-11-25 05:28:02 -05:00
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath refid="main.classpath"/>
|
|
|
|
</javac>
|
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${main.output.test.dir}"
|
|
|
|
srcdir="${main.src.test}"
|
|
|
|
debug="${compile.debug}"
|
2010-06-13 02:26:14 -04:00
|
|
|
encoding="${java.source.encoding}"
|
2010-11-25 05:28:02 -05:00
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath>
|
|
|
|
<path refid="main.classpath"/>
|
|
|
|
<pathelement path="${main.output.dir}"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<copy todir="${main.output.dir}">
|
|
|
|
<fileset dir="${main.resource1.dir}"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile-scratchpad" depends="compile-main">
|
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${scratchpad.output.dir}"
|
|
|
|
srcdir="${scratchpad.src}"
|
|
|
|
debug="${compile.debug}"
|
2010-06-13 02:26:14 -04:00
|
|
|
encoding="${java.source.encoding}"
|
2010-11-25 05:28:02 -05:00
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath refid="scratchpad.classpath"/>
|
|
|
|
</javac>
|
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${scratchpad.output.test.dir}"
|
|
|
|
srcdir="${scratchpad.src.test}"
|
|
|
|
debug="${compile.debug}"
|
2010-06-13 02:26:14 -04:00
|
|
|
encoding="${java.source.encoding}"
|
2010-11-25 05:28:02 -05:00
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath>
|
|
|
|
<path refid="scratchpad.classpath"/>
|
|
|
|
<pathelement location="${scratchpad.output.dir}"/>
|
|
|
|
<pathelement location="${main.output.test.dir}"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<copy todir="${scratchpad.output.dir}">
|
|
|
|
<fileset dir="${scratchpad.resource1.dir}"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile-examples" depends="compile-main,compile-scratchpad,compile-ooxml">
|
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${examples.output.dir}"
|
|
|
|
srcdir="${examples.src}"
|
|
|
|
debug="${compile.debug}"
|
2010-06-13 02:26:14 -04:00
|
|
|
encoding="${java.source.encoding}"
|
2010-11-25 05:28:02 -05:00
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath>
|
|
|
|
<path refid="ooxml.classpath"/>
|
|
|
|
<pathelement path="${ooxml.output.dir}"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
2010-05-10 12:11:50 -04:00
|
|
|
<copy todir="${examples.output.dir}">
|
|
|
|
<fileset dir="${examples.src}">
|
|
|
|
<include name="**/*.css"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2009-11-21 10:30:54 -05:00
|
|
|
</target>
|
|
|
|
|
2013-12-24 18:13:21 -05:00
|
|
|
<target name="compile-ooxml" depends="compile-main,compile-scratchpad,compile-ooxml-xsds,compile-ooxml-encryption-xsds">
|
2009-11-21 10:30:54 -05:00
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${ooxml.output.dir}"
|
|
|
|
srcdir="${ooxml.src}"
|
2010-11-25 05:28:02 -05:00
|
|
|
debug="${compile.debug}"
|
2010-06-13 02:26:14 -04:00
|
|
|
encoding="${java.source.encoding}"
|
2010-11-25 05:28:02 -05:00
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath refid="ooxml.classpath"/>
|
|
|
|
</javac>
|
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${ooxml.output.test.dir}"
|
|
|
|
srcdir="${ooxml.src.test}"
|
|
|
|
debug="${compile.debug}"
|
2010-06-13 02:26:14 -04:00
|
|
|
encoding="${java.source.encoding}"
|
2010-11-25 05:28:02 -05:00
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath>
|
|
|
|
<path refid="ooxml.classpath"/>
|
|
|
|
<pathelement path="${ooxml.output.dir}"/>
|
|
|
|
<pathelement path="${main.output.test.dir}"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
2011-11-07 04:12:16 -05:00
|
|
|
<copy todir="${ooxml.output.dir}">
|
|
|
|
<fileset dir="${ooxml.resource1.dir}"/>
|
|
|
|
</copy>
|
2009-11-21 10:30:54 -05:00
|
|
|
</target>
|
|
|
|
|
2011-02-18 15:04:50 -05:00
|
|
|
<target name="compile-excelant" depends="compile-main,compile-ooxml">
|
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${excelant.output.dir}"
|
|
|
|
srcdir="${excelant.src}"
|
|
|
|
debug="${compile.debug}"
|
|
|
|
encoding="${java.source.encoding}"
|
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
|
|
|
<classpath refid="excelant.classpath"/>
|
|
|
|
</javac>
|
|
|
|
<javac target="${jdk.version.class}"
|
|
|
|
source="${jdk.version.source}"
|
|
|
|
destdir="${excelant.output.test.dir}"
|
|
|
|
srcdir="${excelant.src.test}"
|
|
|
|
debug="${compile.debug}"
|
|
|
|
encoding="${java.source.encoding}"
|
|
|
|
fork="yes"
|
|
|
|
includeantruntime="false">
|
|
|
|
<classpath>
|
|
|
|
<path refid="excelant.classpath"/>
|
|
|
|
<pathelement location="${excelant.output.dir}"/>
|
|
|
|
<pathelement path="${main.output.test.dir}"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<copy todir="${excelant.output.dir}">
|
|
|
|
<fileset dir="${excelant.resource.dir}"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<target name="compile-version" depends="init"
|
|
|
|
description="Compiles the version class">
|
|
|
|
<!-- Generate the .java file -->
|
|
|
|
<property name="version.java" value="${main.output.dir}/org/apache/poi/Version.java"/>
|
|
|
|
<delete file="${version.java}"/>
|
|
|
|
<copy
|
|
|
|
file="src/resources/version/Version.java.template"
|
|
|
|
tofile="${version.java}">
|
|
|
|
<filterset>
|
|
|
|
<filter token="VERSION" value="${version.id}"/>
|
|
|
|
<filter token="DSTAMP" value="${DSTAMP}"/>
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<!-- Compile -->
|
|
|
|
<javac target="${jdk.version.class}" source="${jdk.version.source}"
|
|
|
|
failonerror="true" destdir="${main.output.dir}" debug="on" fork="yes"
|
2010-06-13 02:26:14 -04:00
|
|
|
srcdir="${main.output.dir}"
|
2010-11-25 05:28:02 -05:00
|
|
|
encoding="${java.source.encoding}" includeantruntime="false">
|
2010-06-13 02:26:14 -04:00
|
|
|
</javac>
|
2009-11-21 10:30:54 -05:00
|
|
|
<!-- Tidy up -->
|
|
|
|
<delete file="${version.java}"/>
|
|
|
|
</target>
|
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<target name="jacocotask" depends="">
|
2013-08-12 15:43:40 -04:00
|
|
|
<echo message="Coverage reporting: ${coverage.enabled}"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
|
|
|
|
<classpath refid="lib.jacoco"/>
|
|
|
|
</taskdef>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="test" depends="compile,jacocotask,test-main,test-scratchpad,test-ooxml,test-excelant"
|
2010-10-06 03:58:51 -04:00
|
|
|
description="Tests main, scratchpad and ooxml"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
<target name="test-all" depends="test,test-ooxml-lite,testcoveragereport"/>
|
|
|
|
|
2013-08-12 15:43:40 -04:00
|
|
|
<target name="testcoveragereport" depends="jacocotask" description="create test-report" xmlns:jacoco="antlib:org.jacoco.ant" if="coverage.enabled">
|
2013-08-04 12:38:01 -04:00
|
|
|
<delete dir="${coverage.dir}"/>
|
|
|
|
<mkdir dir="${coverage.dir}"/>
|
|
|
|
|
|
|
|
<jacoco:report>
|
|
|
|
<executiondata>
|
|
|
|
<fileset dir="build">
|
|
|
|
<include name="*.exec"/>
|
|
|
|
</fileset>
|
|
|
|
</executiondata>
|
|
|
|
|
|
|
|
<structure name="Apache POI">
|
|
|
|
<group name="Main">
|
|
|
|
<classfiles>
|
|
|
|
<fileset dir="${main.output.dir}">
|
2013-10-30 18:26:13 -04:00
|
|
|
<exclude name="org/apache/poi/hssf/usermodel/DummyGraphics2d.class"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
</fileset>
|
|
|
|
</classfiles>
|
|
|
|
<sourcefiles encoding="UTF-8">
|
|
|
|
<fileset dir="${main.src}"/>
|
|
|
|
</sourcefiles>
|
|
|
|
</group>
|
|
|
|
<group name="Scratchpad">
|
|
|
|
<classfiles>
|
2014-03-16 15:46:46 -04:00
|
|
|
<fileset dir="${scratchpad.output.dir}">
|
|
|
|
<exclude name="org/apache/poi/hwpf/model/types/*.class"/>
|
|
|
|
<exclude name="org/apache/poi/hdf/model/hdftypes/definitions/*.class"/>
|
|
|
|
</fileset>
|
2013-08-04 12:38:01 -04:00
|
|
|
</classfiles>
|
|
|
|
<sourcefiles encoding="UTF-8">
|
|
|
|
<fileset dir="${scratchpad.src}"/>
|
|
|
|
</sourcefiles>
|
|
|
|
</group>
|
|
|
|
<group name="OOXML">
|
|
|
|
<classfiles>
|
|
|
|
<fileset dir="${ooxml.output.dir}">
|
|
|
|
<exclude name=""/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="${ooxml.lite.output.dir}">
|
|
|
|
<exclude name="org/openxmlformats/**"/>
|
|
|
|
<exclude name="schema*/**"/>
|
|
|
|
</fileset>
|
|
|
|
</classfiles>
|
|
|
|
<sourcefiles encoding="UTF-8">
|
|
|
|
<fileset dir="${ooxml.src}"/>
|
|
|
|
<!--fileset dir="${ooxml.lite.src}"/-->
|
|
|
|
</sourcefiles>
|
|
|
|
</group>
|
|
|
|
<group name="Excelant">
|
|
|
|
<classfiles>
|
|
|
|
<fileset dir="${excelant.output.dir}"/>
|
|
|
|
</classfiles>
|
|
|
|
<sourcefiles encoding="UTF-8">
|
|
|
|
<fileset dir="${excelant.src}"/>
|
|
|
|
</sourcefiles>
|
|
|
|
</group>
|
|
|
|
</structure>
|
|
|
|
|
|
|
|
<html destdir="${coverage.dir}"/>
|
|
|
|
<xml destfile="${coverage.dir}/coverage.xml"/>
|
|
|
|
</jacoco:report>
|
|
|
|
|
|
|
|
<echo message="Coverage results are available at coverage\index.html, coverage/coverage.xml" />
|
|
|
|
</target>
|
2003-04-23 20:53:41 -04:00
|
|
|
|
|
|
|
<target name="-test-main-check">
|
|
|
|
<uptodate property="main.test.notRequired" targetfile="${main.testokfile}">
|
|
|
|
<srcfiles dir="${main.src}"/>
|
|
|
|
<srcfiles dir="${main.src.test}"/>
|
|
|
|
</uptodate>
|
|
|
|
</target>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<target name="test-main" unless="main.test.notRequired"
|
2013-08-04 12:38:01 -04:00
|
|
|
depends="compile-main, -test-main-check,jacocotask" xmlns:jacoco="antlib:org.jacoco.ant">
|
|
|
|
<jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-main.exec">
|
|
|
|
<junit fork="yes" forkmode="once" printsummary="yes" haltonfailure="${halt.on.test.failure}"
|
|
|
|
failureproperty="main.test.failed" showoutput="true">
|
|
|
|
<classpath refid="test.classpath"/>
|
|
|
|
<syspropertyset refid="junit.properties"/>
|
|
|
|
<jvmarg value="${poi.test.locale}"/>
|
|
|
|
<jvmarg value="-ea"/>
|
|
|
|
<jvmarg value="-Xmx256m"/>
|
|
|
|
<formatter type="plain"/>
|
|
|
|
<formatter type="xml"/>
|
|
|
|
<batchtest todir="${main.reports.test}">
|
|
|
|
<fileset dir="${main.src.test}">
|
|
|
|
<include name="**/${testpattern}.java"/>
|
|
|
|
<exclude name="**/All*Tests.java"/>
|
|
|
|
<exclude name="**/TestUnfixedBugs.java"/>
|
|
|
|
<exclude name="**/TestcaseRecordInputStream.java"/>
|
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</jacoco:coverage>
|
2009-11-21 10:30:54 -05:00
|
|
|
<delete file="${main.testokfile}"/>
|
|
|
|
<antcall target="-test-main-write-testfile"/>
|
2003-07-14 08:11:12 -04:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-test-property-check" unless="testcase">
|
|
|
|
<echo message="Please use -Dtestcase=org.your.testcase to run a single test"/>
|
|
|
|
<fail/>
|
2003-05-04 05:17:06 -04:00
|
|
|
</target>
|
2003-04-23 20:53:41 -04:00
|
|
|
|
|
|
|
<target name="-test-main-write-testfile" unless="main.test.failed">
|
|
|
|
<echo file="${main.testokfile}" append="false" message="testok"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-test-scratchpad-check">
|
|
|
|
<uptodate property="scratchpad.test.notRequired" targetfile="${scratchpad.testokfile}">
|
|
|
|
<srcfiles dir="${scratchpad.src}"/>
|
|
|
|
<srcfiles dir="${scratchpad.src.test}"/>
|
|
|
|
</uptodate>
|
|
|
|
</target>
|
|
|
|
|
2014-02-11 18:16:54 -05:00
|
|
|
<target name="test-scratchpad" depends="compile-main,compile-scratchpad,-test-scratchpad-check,jacocotask,test-scratchpad-download-resources"
|
2013-08-04 12:38:01 -04:00
|
|
|
unless="scratchpad.test.notRequired" xmlns:jacoco="antlib:org.jacoco.ant">
|
|
|
|
<jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-scratchpad.exec">
|
|
|
|
<junit printsummary="yes" fork="yes" forkmode="once" haltonfailure="${halt.on.test.failure}"
|
|
|
|
failureproperty="scratchpad.test.failed">
|
|
|
|
<classpath refid="test.scratchpad.classpath"/>
|
|
|
|
<syspropertyset refid="junit.properties"/>
|
|
|
|
<jvmarg value="${poi.test.locale}"/>
|
|
|
|
<jvmarg value="-ea"/>
|
|
|
|
<!--
|
|
|
|
YK: ensure that JUnit has enough memory to run tests.
|
|
|
|
Without the line below tests fail on Mac OS X with jdk-1.6.26
|
|
|
|
and on Windows with jdk-1.5.22
|
|
|
|
-->
|
|
|
|
<jvmarg value="-Xmx256M"/>
|
|
|
|
<formatter type="plain"/>
|
|
|
|
<formatter type="xml"/>
|
|
|
|
<batchtest todir="${scratchpad.reports.test}">
|
|
|
|
<fileset dir="${scratchpad.src.test}">
|
|
|
|
<include name="**/${testpattern}.java"/>
|
|
|
|
<exclude name="**/AllTests.java"/>
|
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</jacoco:coverage>
|
2003-04-23 20:53:41 -04:00
|
|
|
<delete file="${scratchpad.testokfile}"/>
|
|
|
|
<antcall target="-test-scratchpad-write-testfile"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-test-scratchpad-write-testfile" unless="scratchpad.test.failed">
|
|
|
|
<echo file="${scratchpad.testokfile}" append="false" message="testok"/>
|
|
|
|
</target>
|
|
|
|
|
2007-12-27 06:52:12 -05:00
|
|
|
<target name="-test-ooxml-check">
|
|
|
|
<uptodate property="ooxml.test.notRequired" targetfile="${ooxml.testokfile}">
|
|
|
|
<srcfiles dir="${ooxml.src}"/>
|
|
|
|
<srcfiles dir="${ooxml.src.test}"/>
|
|
|
|
</uptodate>
|
|
|
|
</target>
|
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<macrodef name="ooxml-test-runner" xmlns:jacoco="antlib:org.jacoco.ant">
|
2009-11-21 10:30:54 -05:00
|
|
|
<attribute name="classpath"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
<attribute name="type"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
<sequential>
|
2013-08-04 12:38:01 -04:00
|
|
|
<jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-@{type}.exec">
|
|
|
|
<junit printsummary="yes" fork="yes" forkmode="once" haltonfailure="${halt.on.test.failure}"
|
|
|
|
failureproperty="ooxml.test.failed">
|
|
|
|
<classpath refid="@{classpath}"/>
|
|
|
|
<syspropertyset refid="junit.properties"/>
|
|
|
|
<jvmarg value="${poi.test.locale}"/>
|
2014-02-09 16:19:20 -05:00
|
|
|
<jvmarg value="-ea"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
<formatter type="plain"/>
|
|
|
|
<formatter type="xml"/>
|
|
|
|
<batchtest todir="${ooxml.reports.test}">
|
|
|
|
<fileset dir="${ooxml.src.test}">
|
|
|
|
<include name="**/${testpattern}.java"/>
|
|
|
|
<exclude name="**/TestUnfixedBugs.java"/>
|
|
|
|
<exclude name="**/All*Tests.java"/>
|
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</jacoco:coverage>
|
2009-11-21 10:30:54 -05:00
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<target name="test-ooxml" depends="compile-main,compile-ooxml,-test-ooxml-check,jacocotask" unless="ooxml.test.notRequired">
|
|
|
|
<ooxml-test-runner classpath="test.ooxml.classpath" type="ooxml"/>
|
2007-12-27 06:52:12 -05:00
|
|
|
<delete file="${ooxml.testokfile}"/>
|
|
|
|
<antcall target="-test-ooxml-write-testfile"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-test-ooxml-write-testfile" unless="ooxml.test.failed">
|
|
|
|
<echo file="${ooxml.testokfile}" append="false" message="testok"/>
|
|
|
|
</target>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<target name="compile-ooxml-lite" depends="compile-ooxml">
|
2013-12-24 18:13:21 -05:00
|
|
|
<property name="ooxml.lite-merged.dir" location="build/ooxml-lite-merged"/>
|
|
|
|
<mkdir dir="${ooxml.lite-merged.dir}"/>
|
|
|
|
|
|
|
|
<jar destfile="${ooxml.lite-merged.dir}/ooxml-lite-merged.jar">
|
|
|
|
<zipfileset includes="**/*" src="${ooxml.xsds.jar}"/>
|
|
|
|
<zipfileset includes="**/*" src="${ooxml.encryption.jar}"/>
|
|
|
|
</jar>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<java classname="org.apache.poi.util.OOXMLLite" fork="yes">
|
2013-12-24 18:13:21 -05:00
|
|
|
<classpath>
|
|
|
|
<pathelement path="${ooxml.lite-merged.dir}/ooxml-lite-merged.jar"/>
|
|
|
|
</classpath>
|
2009-11-21 10:30:54 -05:00
|
|
|
<classpath refid="test.ooxml.classpath"/>
|
|
|
|
<syspropertyset refid="junit.properties"/>
|
2010-05-30 08:39:42 -04:00
|
|
|
<jvmarg value="${poi.test.locale}"/>
|
2012-10-26 07:50:20 -04:00
|
|
|
<arg value="-ooxml"/>
|
2013-12-24 18:13:21 -05:00
|
|
|
<arg value="${ooxml.lite-merged.dir}/ooxml-lite-merged.jar"/>
|
2012-10-26 07:50:20 -04:00
|
|
|
<arg value="-test"/>
|
|
|
|
<arg value="${ooxml.output.test.dir}"/>
|
|
|
|
<arg value="-dest"/>
|
|
|
|
<arg value="${ooxml.lite.output.dir}"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
</java>
|
2008-03-11 08:52:46 -04:00
|
|
|
</target>
|
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<target name="test-ooxml-lite" depends="jacocotask">
|
2009-11-21 10:30:54 -05:00
|
|
|
<delete file="${ooxml.testokfile}"/>
|
2009-11-23 03:43:04 -05:00
|
|
|
<echo message="Running ooxml tests against 'poi-ooxml-schemas'"/>
|
2013-08-04 12:38:01 -04:00
|
|
|
<ooxml-test-runner classpath="ooxml-lite.classpath" type="ooxml-lite"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
</target>
|
|
|
|
|
2011-02-18 15:04:50 -05:00
|
|
|
<target name="-test-excelant-check">
|
|
|
|
<uptodate property="excelant.test.notRequired" targetfile="${excelant.testokfile}">
|
|
|
|
<srcfiles dir="${excelant.src}"/>
|
|
|
|
<srcfiles dir="${excelant.src.test}"/>
|
|
|
|
</uptodate>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-test-excelant-write-testfile" unless="excelant.test.failed">
|
|
|
|
<echo file="${excelant.testokfile}" append="false" message="testok"/>
|
|
|
|
</target>
|
|
|
|
|
2013-08-04 12:38:01 -04:00
|
|
|
<target name="test-excelant" depends="compile-excelant,-test-excelant-check,jacocotask"
|
|
|
|
unless="excelant.test.notRequired" xmlns:jacoco="antlib:org.jacoco.ant">
|
|
|
|
<jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-excelant.exec">
|
|
|
|
<junit printsummary="yes" fork="yes" forkmode="once" haltonfailure="${halt.on.test.failure}"
|
|
|
|
failureproperty="excelant.test.failed">
|
|
|
|
<classpath refid="test.excelant.classpath"/>
|
|
|
|
<syspropertyset refid="junit.properties"/>
|
|
|
|
<jvmarg value="${poi.test.locale}"/>
|
|
|
|
<jvmarg value="-ea"/>
|
|
|
|
<formatter type="plain"/>
|
|
|
|
<formatter type="xml"/>
|
|
|
|
<batchtest todir="${excelant.reports.test}">
|
|
|
|
<fileset dir="${excelant.src.test}">
|
|
|
|
<include name="**/${testpattern}.java"/>
|
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</jacoco:coverage>
|
2011-02-18 15:04:50 -05:00
|
|
|
<delete file="${excelant.testokfile}"/>
|
|
|
|
<antcall target="-test-excelant-write-testfile"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-04-23 20:53:41 -04:00
|
|
|
<target name="-check-docs">
|
|
|
|
<uptodate property="main.docs.notRequired" targetfile="${build.site}/index.html">
|
2011-03-04 06:59:23 -05:00
|
|
|
<srcfiles dir="${main.documentation}" />
|
2003-04-23 20:53:41 -04:00
|
|
|
</uptodate>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-check-forrest-installed" unless="env.FORREST_HOME">
|
2003-08-02 15:48:57 -04:00
|
|
|
<echo>Please install Apache Forrest (see
|
2009-11-21 10:30:54 -05:00
|
|
|
<http://forrest.apache.org/index.html>) and set the
|
|
|
|
FORREST_HOME environment variable!
|
|
|
|
</echo>
|
2003-08-02 15:48:57 -04:00
|
|
|
<fail message="Apache Forrest is not installed."/>
|
2003-04-23 20:53:41 -04:00
|
|
|
</target>
|
|
|
|
|
2005-01-03 10:38:43 -05:00
|
|
|
<target name="docs" depends="init, -check-forrest-installed, -check-docs"
|
2009-11-21 10:30:54 -05:00
|
|
|
unless="main.docs.notRequired" description="Builds the POI website">
|
2003-04-23 20:53:41 -04:00
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<mkdir dir="${build.site.src}/${main.documentation}"/>
|
|
|
|
<copy todir="${build.site.src}/${main.documentation}">
|
|
|
|
<fileset dir="${main.documentation}"/>
|
2003-04-23 20:53:41 -04:00
|
|
|
</copy>
|
2009-11-21 10:30:54 -05:00
|
|
|
<copy file="forrest.properties" tofile="${build.site.src}/forrest.properties"/>
|
2003-04-23 20:53:41 -04:00
|
|
|
|
2004-12-31 08:26:31 -05:00
|
|
|
<move
|
2009-11-21 10:30:54 -05:00
|
|
|
file="${build.site.src}/src/documentation/content/xdocs/status.xml"
|
|
|
|
tofile="${build.site.src}/status.xml"/>
|
2003-04-23 20:53:41 -04:00
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<ant antfile="${env.FORREST_HOME}/forrest.antproxy.xml" target="site">
|
2003-08-23 15:07:41 -04:00
|
|
|
<property name="project.home" location="${build.site.src}"/>
|
2003-04-23 20:53:41 -04:00
|
|
|
</ant>
|
|
|
|
|
|
|
|
<echo>Broken links:</echo>
|
|
|
|
<echo file="${build.site}/../tmp/brokenlinks.txt"/>
|
|
|
|
|
|
|
|
<touch>
|
|
|
|
<fileset dir="${build.site}"/>
|
|
|
|
</touch>
|
|
|
|
</target>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<!-- Generates the API documentation. -->
|
|
|
|
<target name="javadocs"
|
|
|
|
description="Generates the API documentation">
|
|
|
|
<javadoc verbose="false" author="true" destdir="${apidocs.report.dir}"
|
2013-05-26 13:04:53 -04:00
|
|
|
windowtitle="POI API Documentation" use="true" version="true"
|
2013-12-24 18:13:21 -05:00
|
|
|
maxmemory="384M" additionalparam="-notimestamp">
|
2009-11-21 10:30:54 -05:00
|
|
|
|
|
|
|
<packageset dir="${main.src}" defaultexcludes="yes">
|
|
|
|
<include name="org/apache/poi/**"/>
|
|
|
|
</packageset>
|
|
|
|
<packageset dir="${scratchpad.src}" defaultexcludes="yes">
|
|
|
|
<include name="org/apache/poi/**"/>
|
|
|
|
<exclude name="org/apache/poi/hdf/**"/>
|
|
|
|
</packageset>
|
|
|
|
<packageset dir="${ooxml.src}" defaultexcludes="yes">
|
|
|
|
<include name="org/apache/poi/**"/>
|
|
|
|
</packageset>
|
|
|
|
|
|
|
|
<classpath id="javadoc.classpath">
|
|
|
|
<path refid="main.classpath"/>
|
|
|
|
<path refid="scratchpad.classpath"/>
|
|
|
|
<path refid="ooxml.classpath"/>
|
|
|
|
<path path="${env.CLASSPATH}"/>
|
|
|
|
</classpath>
|
2005-01-01 18:39:42 -05:00
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<doctitle><![CDATA[<h1>POI API Documentation</h1>]]></doctitle>
|
|
|
|
<bottom>
|
|
|
|
<![CDATA[<i>Copyright ${tstamp.year} The Apache Software Foundation or
|
2005-01-25 15:08:18 -05:00
|
|
|
its licensors, as applicable.</i>]]>
|
2009-11-21 10:30:54 -05:00
|
|
|
</bottom>
|
|
|
|
<group>
|
|
|
|
<title>DDF - Dreadful Drawing Format</title>
|
|
|
|
<package name="org.apache.poi.ddf*"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<title>HPSF - Horrible Property Set Format</title>
|
|
|
|
<package name="org.apache.poi.hpsf*"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<title>HSSF - Horrible Spreadsheet Format</title>
|
|
|
|
<package name="org.apache.poi.hssf*"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<title>HWPF - Horrible Word Processor Format</title>
|
|
|
|
<package name="org.apache.poi.hwpf*"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<title>POIFS - POI File System</title>
|
|
|
|
<package name="org.apache.poi.poifs*"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<title>Utilities</title>
|
|
|
|
<package name="org.apache.poi.util*"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<title>Examples</title>
|
|
|
|
<package name="org.apache.poi.hpsf.examples*"/>
|
|
|
|
<package name="org.apache.poi.hssf.usermodel.examples*"/>
|
|
|
|
</group>
|
|
|
|
</javadoc>
|
|
|
|
|
|
|
|
</target>
|
2003-09-04 15:52:11 -04:00
|
|
|
|
|
|
|
|
2005-01-01 18:39:42 -05:00
|
|
|
<!-- Generates documentation and reports -->
|
2009-11-21 10:30:54 -05:00
|
|
|
<target name="site" depends="docs,javadocs"
|
|
|
|
description="Generates POI's website's contents"/>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="maven-poms"
|
|
|
|
description="Builds the POM files for a maven distribution, and copies these and the jars to the appropriate locations">
|
|
|
|
|
|
|
|
<!-- Build the org.apache.poi poms -->
|
|
|
|
<copy file="maven/poi.pom" tofile="${dist.dir}/poi-${version.id}.pom">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${version.id}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
|
|
|
<copy file="maven/poi-scratchpad.pom" tofile="${dist.dir}/poi-scratchpad-${version.id}.pom">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${version.id}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
|
|
|
<copy file="maven/poi-ooxml.pom" tofile="${dist.dir}/poi-ooxml-${version.id}.pom">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${version.id}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
2009-11-24 04:10:49 -05:00
|
|
|
<copy file="maven/poi-examples.pom" tofile="${dist.dir}/poi-examples-${version.id}.pom">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${version.id}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
2009-11-21 10:30:54 -05:00
|
|
|
<copy file="maven/poi-ooxml-schemas.pom" tofile="${dist.dir}/poi-ooxml-schemas-${version.id}.pom">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${version.id}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
2011-02-18 15:04:50 -05:00
|
|
|
<copy file="maven/poi-excelant.pom" tofile="${dist.dir}/poi-excelant-${version.id}.pom">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${version.id}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
2009-11-21 10:30:54 -05:00
|
|
|
<copy file="maven/mvn-deploy.sh" todir="${dist.dir}">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${version.id}"/>
|
|
|
|
<token key="DSTAMP" value="${DSTAMP}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
2009-11-23 03:43:04 -05:00
|
|
|
<echo>Maven POMs are located in ${dist.dir}</echo>
|
|
|
|
<echo>Use mvn-deploy.sh to deploy the artifacts in the remote repository</echo>
|
2009-11-21 10:30:54 -05:00
|
|
|
</target>
|
|
|
|
|
2009-11-23 03:43:04 -05:00
|
|
|
<target name="jar" depends="compile-all, compile-version" description="Creates jar files for distribution">
|
2009-11-21 10:30:54 -05:00
|
|
|
<manifest file="build/poi-manifest.mf">
|
|
|
|
<attribute name="Built-By" value="${user.name}"/>
|
|
|
|
<attribute name="Specification-Title" value="Apache POI"/>
|
|
|
|
<attribute name="Specification-Version" value="${version.id}"/>
|
|
|
|
<attribute name="Specification-Vendor" value="The Apache Software Foundation"/>
|
|
|
|
<attribute name="Implementation-Title" value="Apache POI"/>
|
|
|
|
<attribute name="Implementation-Version" value="${version.id}"/>
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="org.apache.poi"/>
|
|
|
|
<attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
|
|
|
|
</manifest>
|
|
|
|
<jar destfile="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar"
|
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${main.output.dir}"/>
|
|
|
|
<metainf dir="legal/"/>
|
|
|
|
</jar>
|
|
|
|
<jar destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar"
|
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${scratchpad.output.dir}"/>
|
|
|
|
<metainf dir="legal/"/>
|
2004-08-23 04:52:54 -04:00
|
|
|
</jar>
|
2009-11-21 10:30:54 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-ooxml-${version.id}-${DSTAMP}.jar"
|
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${ooxml.output.dir}"/>
|
|
|
|
<metainf dir="legal/"/>
|
2004-08-23 04:52:54 -04:00
|
|
|
</jar>
|
2009-11-21 10:30:54 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-examples-${version.id}-${DSTAMP}.jar"
|
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${examples.output.dir}"/>
|
|
|
|
<metainf dir="legal/"/>
|
|
|
|
</jar>
|
|
|
|
<jar destfile="${dist.dir}/${jar.name}-ooxml-schemas-${version.id}-${DSTAMP}.jar"
|
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${ooxml.lite.output.dir}"/>
|
|
|
|
<metainf dir="legal/"/>
|
2009-05-17 14:38:33 -04:00
|
|
|
</jar>
|
2011-02-18 15:04:50 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-excelant-${version.id}-${DSTAMP}.jar"
|
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${excelant.output.dir}"/>
|
|
|
|
<metainf dir="legal/"/>
|
|
|
|
</jar>
|
2009-05-17 14:38:33 -04:00
|
|
|
</target>
|
2009-11-21 10:30:54 -05:00
|
|
|
|
|
|
|
<target name="jar-src" description="Sources for Maven">
|
2009-12-07 09:20:10 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-${version.id}-sources-${DSTAMP}.jar"
|
2009-11-21 10:30:54 -05:00
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${main.src}"/>
|
|
|
|
<metainf dir="legal/"/>
|
|
|
|
</jar>
|
2009-12-07 09:20:10 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-sources-${DSTAMP}.jar"
|
2009-11-21 10:30:54 -05:00
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${scratchpad.src}"/>
|
|
|
|
<metainf dir="legal/"/>
|
2007-12-30 13:11:55 -05:00
|
|
|
</jar>
|
2009-12-07 09:20:10 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-ooxml-${version.id}-sources-${DSTAMP}.jar"
|
2009-11-21 10:30:54 -05:00
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${ooxml.src}"/>
|
|
|
|
<metainf dir="legal/"/>
|
|
|
|
</jar>
|
2009-12-07 09:20:10 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-examples-${version.id}-sources-${DSTAMP}.jar"
|
2009-11-21 10:30:54 -05:00
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${examples.src}"/>
|
|
|
|
<metainf dir="legal/"/>
|
|
|
|
</jar>
|
2011-02-18 15:04:50 -05:00
|
|
|
<jar destfile="${dist.dir}/${jar.name}-excelant-${version.id}-sources-${DSTAMP}.jar"
|
|
|
|
manifest="build/poi-manifest.mf">
|
|
|
|
<fileset dir="${excelant.src}"/>
|
|
|
|
<metainf dir="legal/"/>
|
|
|
|
</jar>
|
2009-11-21 10:30:54 -05:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="assemble" depends="jar,jar-src">
|
2009-11-23 03:43:04 -05:00
|
|
|
<!-- jars to include in binary assemblies -->
|
|
|
|
<patternset id="bin.dist.jars">
|
|
|
|
<include name="${jar.name}-${version.id}-${DSTAMP}.jar"/>
|
|
|
|
<include name="${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar"/>
|
|
|
|
<include name="${jar.name}-ooxml-${version.id}-${DSTAMP}.jar"/>
|
|
|
|
<include name="${jar.name}-examples-${version.id}-${DSTAMP}.jar"/>
|
|
|
|
<include name="${jar.name}-ooxml-schemas-${version.id}-${DSTAMP}.jar"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<include name="${jar.name}-excelant-${version.id}-${DSTAMP}.jar"/>
|
2009-11-23 03:43:04 -05:00
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<!-- patterns to exclude from source assemblies -->
|
|
|
|
<patternset id="src.dist.patterns"
|
|
|
|
excludes="build/**,
|
|
|
|
maven/**,
|
|
|
|
lib/**,
|
|
|
|
ooxml-lib/**,
|
|
|
|
scripts/**,
|
|
|
|
TEST*,
|
|
|
|
*.ipr,
|
|
|
|
*.iml,
|
|
|
|
*.iws,
|
|
|
|
*.lnk,
|
|
|
|
*.rdf,
|
|
|
|
*.swp,
|
2010-08-05 07:20:25 -04:00
|
|
|
.settings/**,
|
2009-11-23 03:43:04 -05:00
|
|
|
.classpath,
|
2010-09-21 07:55:17 -04:00
|
|
|
.settings/**,
|
2009-11-23 03:43:04 -05:00
|
|
|
.project"/>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<property name="zipdir" value="${jar.name}-${version.id}"/>
|
|
|
|
|
|
|
|
<zip destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.zip">
|
|
|
|
<zipfileset dir="legal/" prefix="${zipdir}"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<zipfileset dir="${main.lib}" prefix="${zipdir}/lib">
|
2012-04-22 02:40:10 -04:00
|
|
|
<include name="commons-codec-*.jar"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<include name="commons-logging-*.jar"/>
|
|
|
|
<include name="junit-*.jar"/>
|
|
|
|
<include name="log4j-*.jar"/>
|
|
|
|
</zipfileset>
|
2009-11-21 10:30:54 -05:00
|
|
|
<zipfileset dir="${ooxml.lib}" prefix="${zipdir}/ooxml-lib">
|
|
|
|
<include name="dom4j-*.jar"/>
|
|
|
|
<include name="xmlbeans-*.jar"/>
|
|
|
|
</zipfileset>
|
2009-11-23 03:43:04 -05:00
|
|
|
<zipfileset dir="${dist.dir}" prefix="${zipdir}">
|
|
|
|
<patternset refid="bin.dist.jars"/>
|
|
|
|
</zipfileset>
|
2009-11-21 10:30:54 -05:00
|
|
|
<zipfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
<zip destfile="${dist.dir}/${jar.name}-src-${version.id}-${DSTAMP}.zip">
|
2009-11-23 03:43:04 -05:00
|
|
|
<zipfileset dir="legal/" prefix="${zipdir}" />
|
2009-11-21 10:30:54 -05:00
|
|
|
<zipfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
|
|
|
<zipfileset dir="." prefix="${zipdir}">
|
2009-11-23 03:43:04 -05:00
|
|
|
<patternset refid="src.dist.patterns"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
</zipfileset>
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
<tar destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.tar.gz"
|
|
|
|
longfile="gnu"
|
|
|
|
compression="gzip">
|
|
|
|
<tarfileset dir="legal/" prefix="${zipdir}"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<zipfileset dir="${main.lib}" prefix="${zipdir}/lib">
|
2012-04-22 02:40:10 -04:00
|
|
|
<include name="commons-codec-*.jar"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<include name="commons-logging-*.jar"/>
|
|
|
|
<include name="junit-*.jar"/>
|
|
|
|
<include name="log4j-*.jar"/>
|
|
|
|
</zipfileset>
|
2009-11-21 10:30:54 -05:00
|
|
|
<tarfileset dir="${ooxml.lib}" prefix="${zipdir}/ooxml-lib">
|
|
|
|
<include name="dom4j-*.jar"/>
|
|
|
|
<include name="xmlbeans-*.jar"/>
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
2009-11-23 03:43:04 -05:00
|
|
|
<tarfileset dir="${dist.dir}" prefix="${zipdir}">
|
|
|
|
<patternset refid="bin.dist.jars"/>
|
|
|
|
</tarfileset>
|
2009-11-21 10:30:54 -05:00
|
|
|
</tar>
|
|
|
|
|
|
|
|
<tar destfile="${dist.dir}/${jar.name}-src-${version.id}-${DSTAMP}.tar.gz"
|
|
|
|
longfile="gnu"
|
|
|
|
compression="gzip">
|
2009-11-23 03:43:04 -05:00
|
|
|
<tarfileset dir="legal/" prefix="${zipdir}" />
|
2009-11-21 10:30:54 -05:00
|
|
|
<tarfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
|
|
|
<tarfileset dir="." prefix="${zipdir}">
|
2009-11-23 03:43:04 -05:00
|
|
|
<patternset refid="src.dist.patterns"/>
|
2009-11-21 10:30:54 -05:00
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
2009-11-24 04:10:49 -05:00
|
|
|
|
|
|
|
<!-- script to create signatures and hashes -->
|
|
|
|
<copy file="maven/multisign.sh" todir="${dist.dir}"/>
|
|
|
|
|
2009-11-21 10:30:54 -05:00
|
|
|
<echo>Creating Maven POMs</echo>
|
|
|
|
<antcall target="maven-poms"/>
|
|
|
|
|
2009-11-23 03:43:04 -05:00
|
|
|
<echo>Distribution located in ${dist.dir}</echo>
|
2009-11-24 04:10:49 -05:00
|
|
|
<echo>Use ${dist.dir}/multisign.sh to create md5 checksums and GPG signatures</echo>
|
2007-12-30 13:11:55 -05:00
|
|
|
</target>
|
2003-04-23 20:53:41 -04:00
|
|
|
|
2009-11-23 03:43:04 -05:00
|
|
|
<target name="dist" depends="clean, compile-all, test-all, site, jar, assemble"
|
2009-11-21 10:30:54 -05:00
|
|
|
description="Creates the entire distribution into build/dist, from scratch">
|
|
|
|
</target>
|
|
|
|
|
2009-11-23 03:43:04 -05:00
|
|
|
<target name="gump" depends="compile-all, test-all, jar"/>
|
2014-02-08 18:44:42 -05:00
|
|
|
<target name="jenkins" depends="compile-all, test-all, jar, javadocs, assemble, findbugs, rat-check"/>
|
2008-03-21 09:41:45 -04:00
|
|
|
|
2010-01-24 08:05:48 -05:00
|
|
|
<available property="maven.ant.tasks.present" classname="org.apache.maven.artifact.ant.Pom"/>
|
|
|
|
<target name="maven.ant.tasks-check">
|
|
|
|
<fail unless="maven.ant.tasks.present">
|
|
|
|
Maven ant tasks not found.
|
|
|
|
Please make sure the maven-ant-tasks jar is in ANT_HOME/lib, or made
|
|
|
|
available to Ant using other mechanisms like -lib or CLASSPATH.
|
|
|
|
|
|
|
|
You can download the Maven Ant Tasks from http://maven.apache.org/ant-tasks/download.html
|
|
|
|
</fail>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<macrodef name="m2-install">
|
|
|
|
<attribute name="artifactId"/>
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
<mvn:install file="${dist.dir}/@{artifactId}-${version.id}-${DSTAMP}.jar">
|
|
|
|
<pom file="${dist.dir}/@{artifactId}-${version.id}.pom"/>
|
|
|
|
</mvn:install>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Install POI artifacts into the local repository.
|
|
|
|
Invoking this command is equivalent to 'mvn install' in Maven-driven projects.
|
|
|
|
-->
|
|
|
|
<target name="mvn-install" depends="maven.ant.tasks-check,jar,maven-poms">
|
|
|
|
<m2-install artifactId="poi"/>
|
|
|
|
<m2-install artifactId="poi-scratchpad"/>
|
|
|
|
<m2-install artifactId="poi-ooxml"/>
|
|
|
|
<m2-install artifactId="poi-examples"/>
|
|
|
|
<m2-install artifactId="poi-ooxml-schemas"/>
|
2011-02-18 15:04:50 -05:00
|
|
|
<m2-install artifactId="poi-excelant"/>
|
2010-01-24 08:05:48 -05:00
|
|
|
</target>
|
|
|
|
|
2010-05-24 10:16:15 -04:00
|
|
|
<!-- Runs Apache Rat against the source code, to spot any files -->
|
|
|
|
<!-- which are missing the correct license headers -->
|
|
|
|
<!-- You need to download rat from http://incubator.apache.org/rat/ -->
|
|
|
|
<!-- and place the Rat jar into your ant lib before running -->
|
2014-01-20 14:25:22 -05:00
|
|
|
<target name="rat-check" depends="check-jars,fetch-jars">
|
|
|
|
<mkdir dir="${rat.reportdir}" />
|
|
|
|
|
2010-05-24 10:16:15 -04:00
|
|
|
<typedef resource="org/apache/rat/anttasks/antlib.xml"
|
2014-01-20 14:25:22 -05:00
|
|
|
uri="antlib:org.apache.rat.anttasks"
|
|
|
|
classpath="${main.lib}/apache-rat-0.10.jar" />
|
|
|
|
<rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportFile="${rat.report}">
|
2010-05-24 10:16:15 -04:00
|
|
|
<fileset dir="src/">
|
|
|
|
<exclude name="documentation/content/xdocs/dtd/" />
|
|
|
|
<exclude name="documentation/content/xdocs/entity/" />
|
|
|
|
<exclude name="scratchpad/testcases/dummy.txt" />
|
2011-03-04 06:00:13 -05:00
|
|
|
<exclude name="contrib/testcases/dummy.txt" />
|
2010-05-24 10:16:15 -04:00
|
|
|
<exclude name="examples/lib/dummy.txt" />
|
2011-12-09 08:27:12 -05:00
|
|
|
<exclude name="resources/ooxml/org/apache/poi/xslf/usermodel/presetShapeDefinitions.xml" />
|
2012-11-25 07:01:54 -05:00
|
|
|
<exclude name="examples/src/org/apache/poi/xslf/usermodel/pie-chart-data.txt" />
|
2010-05-24 10:16:15 -04:00
|
|
|
</fileset>
|
|
|
|
</rat:report>
|
2014-01-20 14:25:22 -05:00
|
|
|
|
|
|
|
<loadfile property="rat.reportcontent" srcFile="${rat.report}"/>
|
|
|
|
<echo>${rat.reportcontent}</echo>
|
|
|
|
|
|
|
|
<!-- fail the build if at least one note is in the report -->
|
2014-01-20 14:55:44 -05:00
|
|
|
<fail><condition><matches pattern="[1-9][0-9]* Unknown Licens" string="${rat.reportcontent}"/></condition></fail>
|
2010-05-24 10:16:15 -04:00
|
|
|
</target>
|
2014-02-08 18:44:42 -05:00
|
|
|
|
|
|
|
<target name="findbugs"><!-- depends="assemble" -->
|
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="http://prdownloads.sourceforge.net/findbugs/findbugs-noUpdateChecks-2.0.3.zip?download"/>
|
|
|
|
<param name="destfile" value="${main.lib}/findbugs-noUpdateChecks-2.0.3.zip"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
<unzip src="${main.lib}/findbugs-noUpdateChecks-2.0.3.zip"
|
|
|
|
dest="build/findbugs/lib">
|
|
|
|
<patternset>
|
|
|
|
<include name="findbugs-2.0.3/lib/**"/>
|
|
|
|
</patternset>
|
|
|
|
<mapper type="flatten"/>
|
|
|
|
</unzip>
|
|
|
|
|
|
|
|
<property name="findbugs.home" value="build/findbugs" />
|
|
|
|
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="${findbugs.home}/lib">
|
|
|
|
<include name="*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</taskdef>
|
2014-02-12 19:07:36 -05:00
|
|
|
<findbugs home="${findbugs.home}" output="html" outputFile="build/findbugs.html"
|
2014-02-13 18:34:11 -05:00
|
|
|
excludeFilter="src/resources/devtools/findbugs-filters.xml">
|
2014-02-08 18:44:42 -05:00
|
|
|
<fileset dir="${dist.dir}">
|
|
|
|
<include name="poi-${version.id}-*.jar"/>
|
|
|
|
<include name="poi-scratchpad-${version.id}-*.jar"/>
|
|
|
|
<include name="poi-ooxml-${version.id}-*.jar"/>
|
|
|
|
<exclude name="poi-*${version.id}-sources-*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
<auxClasspath path="ooxml-lib/ooxml-schemas-1.1.jar" />
|
|
|
|
<auxClasspath path="ooxml-lib/ooxml-encryption-1.1.jar" />
|
2014-06-12 03:08:21 -04:00
|
|
|
<auxClasspath path="ooxml-lib/xmlbeans-2.3.0.jar" />
|
2014-02-08 18:44:42 -05:00
|
|
|
<auxClasspath path="ooxml-lib/dom4j-1.6.1.jar" />
|
|
|
|
<auxClasspath path="lib/commons-codec-1.9.jar" />
|
|
|
|
<auxClasspath path="lib/commons-logging-1.1.3.jar" />
|
|
|
|
<auxClasspath path="lib/junit-4.11.jar" />
|
|
|
|
<sourcePath path="src/java" />
|
|
|
|
<sourcePath path="src/ooxml/java" />
|
|
|
|
<sourcePath path="src/scratchpad/src" />
|
|
|
|
</findbugs>
|
|
|
|
</target>
|
2014-02-11 18:16:54 -05:00
|
|
|
|
|
|
|
<target name="test-scratchpad-download-resources">
|
2014-03-04 17:23:29 -05:00
|
|
|
<!-- disable font downloading until TestFontRendering works on all plattforms -->
|
|
|
|
<!-- ... eventually copy the files into the resource dirs ... -->
|
|
|
|
<!--
|
2014-02-11 18:16:54 -05:00
|
|
|
<mkdir dir="build/scratchpad-test-resources"/>
|
|
|
|
|
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="http://sourceforge.net/projects/monafont/files/monafont/monafont-2.90/monafont-ttf-2.90.zip/download"/>
|
|
|
|
<param name="destfile" value="build/scratchpad-test-resources/monafont-ttf-2.90.zip"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
<unzip src="build/scratchpad-test-resources/monafont-ttf-2.90.zip"
|
|
|
|
dest="build/scratchpad-test-resources">
|
|
|
|
<patternset>
|
|
|
|
<include name="mona.ttf"/>
|
|
|
|
</patternset>
|
|
|
|
</unzip>
|
|
|
|
|
|
|
|
<antcall target="downloadfile">
|
|
|
|
<param name="sourcefile" value="https://googlefontdirectory.googlecode.com/hg-history/c5955de4df3e40f6ab705bbccbd1f5ad93998287/cabin/Cabin-Regular.ttf"/>
|
|
|
|
<param name="destfile" value="build/scratchpad-test-resources/Cabin-Regular.ttf"/>
|
|
|
|
</antcall>
|
2014-03-04 17:23:29 -05:00
|
|
|
-->
|
2014-02-11 18:16:54 -05:00
|
|
|
</target>
|
|
|
|
|
2002-01-30 21:22:28 -05:00
|
|
|
</project>
|