build.xml indentation
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@646532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c92cf0fd9
commit
e545961728
356
build.xml
356
build.xml
@ -186,7 +186,7 @@ under the License.
|
|||||||
description="JDK version of generated class files, when built on JDK 1.4"/>
|
description="JDK version of generated class files, when built on JDK 1.4"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- normally use the jdk 1.5 stuff -->
|
<!-- normally use the jdk 1.5 stuff -->
|
||||||
<path id="main.classpath">
|
<path id="main.classpath">
|
||||||
<pathelement location="${main.jar1.dir}"/>
|
<pathelement location="${main.jar1.dir}"/>
|
||||||
<pathelement location="${main.jar2.dir}"/>
|
<pathelement location="${main.jar2.dir}"/>
|
||||||
@ -221,8 +221,8 @@ under the License.
|
|||||||
<path refid="main.classpath"/>
|
<path refid="main.classpath"/>
|
||||||
<path refid="scratchpad.classpath"/>
|
<path refid="scratchpad.classpath"/>
|
||||||
<fileset dir="${ooxml.lib}">
|
<fileset dir="${ooxml.lib}">
|
||||||
<include name="*.jar" />
|
<include name="*.jar" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<path id="test.classpath">
|
<path id="test.classpath">
|
||||||
@ -268,7 +268,7 @@ under the License.
|
|||||||
-Ddisconnected="true": Do not execute any targets that require an online
|
-Ddisconnected="true": Do not execute any targets that require an online
|
||||||
connection to the Internet.
|
connection to the Internet.
|
||||||
-Dtestcase=org.apache.poi.xxx.xxx : for the single-test target, specify
|
-Dtestcase=org.apache.poi.xxx.xxx : for the single-test target, specify
|
||||||
the test to run
|
the test to run
|
||||||
-Dfilename=xxxx.xls : for the command line task targets, specify the
|
-Dfilename=xxxx.xls : for the command line task targets, specify the
|
||||||
file to run against
|
file to run against
|
||||||
|
|
||||||
@ -380,7 +380,7 @@ under the License.
|
|||||||
<get src="${ooxml.jar6.url}" dest="${ooxml.jar6.dir}"/>
|
<get src="${ooxml.jar6.url}" dest="${ooxml.jar6.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="check-ooxml-xsds">
|
<target name="check-ooxml-xsds">
|
||||||
<condition property="ooxml-xsds.present">
|
<condition property="ooxml-xsds.present">
|
||||||
<or>
|
<or>
|
||||||
<and>
|
<and>
|
||||||
@ -389,17 +389,17 @@ under the License.
|
|||||||
<isset property="disconnected"/>
|
<isset property="disconnected"/>
|
||||||
</or>
|
</or>
|
||||||
</condition>
|
</condition>
|
||||||
</target>
|
</target>
|
||||||
<target name="fetch-ooxml-xsds" unless="ooxml-xsds.present"
|
<target name="fetch-ooxml-xsds" unless="ooxml-xsds.present"
|
||||||
description="Fetches needed OOXML xsd files from the Internet">
|
description="Fetches needed OOXML xsd files from the Internet">
|
||||||
<get src="${ooxml.xsds.url}" dest="${ooxml.xsds.ozip}"/>
|
<get src="${ooxml.xsds.url}" dest="${ooxml.xsds.ozip}"/>
|
||||||
<unzip src="${ooxml.xsds.ozip}" dest="${ooxml.lib}">
|
<unzip src="${ooxml.xsds.ozip}" dest="${ooxml.lib}">
|
||||||
<patternset>
|
<patternset>
|
||||||
<include name="OfficeOpenXML-XMLSchema.zip" />
|
<include name="OfficeOpenXML-XMLSchema.zip" />
|
||||||
</patternset>
|
</patternset>
|
||||||
</unzip>
|
</unzip>
|
||||||
</target>
|
</target>
|
||||||
<target name="check-compiled-ooxml-xsds">
|
<target name="check-compiled-ooxml-xsds">
|
||||||
<condition property="ooxml-compiled-xsds.present">
|
<condition property="ooxml-compiled-xsds.present">
|
||||||
<or>
|
<or>
|
||||||
<and>
|
<and>
|
||||||
@ -408,30 +408,30 @@ under the License.
|
|||||||
<isset property="disconnected"/>
|
<isset property="disconnected"/>
|
||||||
</or>
|
</or>
|
||||||
</condition>
|
</condition>
|
||||||
</target>
|
</target>
|
||||||
<target name="compile-ooxml-xsds" unless="ooxml-compiled-xsds.present"
|
<target name="compile-ooxml-xsds" unless="ooxml-compiled-xsds.present"
|
||||||
depends="check-jars,fetch-jars,check-ooxml-xsds,fetch-ooxml-xsds,check-compiled-ooxml-xsds"
|
depends="check-jars,fetch-jars,check-ooxml-xsds,fetch-ooxml-xsds,check-compiled-ooxml-xsds"
|
||||||
description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
|
description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
|
||||||
<taskdef name="xmlbean"
|
<taskdef name="xmlbean"
|
||||||
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
||||||
classpath="${ooxml.jar2.dir}:${ooxml.jar3.dir}:${ooxml.jar4.dir}:${ooxml.jar4.dir}:${ooxml.jar5.dir}" />
|
classpath="${ooxml.jar2.dir}:${ooxml.jar3.dir}:${ooxml.jar4.dir}:${ooxml.jar4.dir}:${ooxml.jar5.dir}" />
|
||||||
|
|
||||||
<unzip src="${ooxml.xsds.izip}" dest="build/ooxml-xsds/" />
|
<unzip src="${ooxml.xsds.izip}" dest="build/ooxml-xsds/" />
|
||||||
<!--
|
<!--
|
||||||
schema="build/ooxml-xsds/"
|
schema="build/ooxml-xsds/"
|
||||||
schema="build/ooxml-xsds/sml-workbook.xsd"
|
schema="build/ooxml-xsds/sml-workbook.xsd"
|
||||||
-->
|
-->
|
||||||
<xmlbean
|
<xmlbean
|
||||||
schema="build/ooxml-xsds/"
|
schema="build/ooxml-xsds/"
|
||||||
destfile="${ooxml.xsds.jar}"
|
destfile="${ooxml.xsds.jar}"
|
||||||
javasource="1.4"
|
javasource="1.4"
|
||||||
failonerror="true"
|
failonerror="true"
|
||||||
fork="true"
|
fork="true"
|
||||||
memoryMaximumSize="512m"
|
memoryMaximumSize="512m"
|
||||||
>
|
>
|
||||||
<classpath refid="ooxml.classpath"/>
|
<classpath refid="ooxml.classpath"/>
|
||||||
</xmlbean>
|
</xmlbean>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile" depends="init, compile-main, compile-main-14,
|
<target name="compile" depends="init, compile-main, compile-main-14,
|
||||||
compile-scratchpad, compile-contrib, compile-examples"
|
compile-scratchpad, compile-contrib, compile-examples"
|
||||||
@ -486,22 +486,22 @@ under the License.
|
|||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
|
|
||||||
<!-- Copy HSLF Resources over -->
|
<!-- Copy HSLF Resources over -->
|
||||||
<property name="hslf.data" value="org/apache/poi/hslf/data" />
|
<property name="hslf.data" value="org/apache/poi/hslf/data" />
|
||||||
<mkdir dir="${scratchpad.output.dir}/${hslf.data}" />
|
<mkdir dir="${scratchpad.output.dir}/${hslf.data}" />
|
||||||
<copy todir="${scratchpad.output.dir}/${hslf.data}">
|
<copy todir="${scratchpad.output.dir}/${hslf.data}">
|
||||||
<fileset dir="${scratchpad.src}/${hslf.data}">
|
<fileset dir="${scratchpad.src}/${hslf.data}">
|
||||||
<include name="*.ppt" />
|
<include name="*.ppt" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<!-- Copy HDGF Resources over -->
|
<!-- Copy HDGF Resources over -->
|
||||||
<property name="hdgf.chunks" value="org/apache/poi/hdgf/chunks" />
|
<property name="hdgf.chunks" value="org/apache/poi/hdgf/chunks" />
|
||||||
<copy todir="${scratchpad.output.dir}/${hdgf.chunks}">
|
<copy todir="${scratchpad.output.dir}/${hdgf.chunks}">
|
||||||
<fileset dir="${scratchpad.src}/${hdgf.chunks}">
|
<fileset dir="${scratchpad.src}/${hdgf.chunks}">
|
||||||
<include name="*.tbl" />
|
<include name="*.tbl" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile-contrib" depends="init">
|
<target name="compile-contrib" depends="init">
|
||||||
@ -535,7 +535,7 @@ under the License.
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile-ooxml" depends="init, check-ooxml-xsds, fetch-ooxml-xsds, compile-ooxml-xsds, compile-main">
|
<target name="compile-ooxml" depends="init, check-ooxml-xsds, fetch-ooxml-xsds, compile-ooxml-xsds, compile-main">
|
||||||
<!-- openxml4j requires java 1.5, so so must we, for now -->
|
<!-- openxml4j requires java 1.5, so so must we, for now -->
|
||||||
<javac target="1.5" source="1.5"
|
<javac target="1.5" source="1.5"
|
||||||
destdir="${ooxml.output.dir}" debug="on" srcdir="${ooxml.src}">
|
destdir="${ooxml.output.dir}" debug="on" srcdir="${ooxml.src}">
|
||||||
<classpath refid="ooxml.classpath"/>
|
<classpath refid="ooxml.classpath"/>
|
||||||
@ -648,7 +648,7 @@ under the License.
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="debug-test" depends="-test-property-check,compile-main" description="Runs a single test case specified with -Dtestcase=classname with remote debug options turned on." >
|
<target name="debug-test" depends="-test-property-check,compile-main" description="Runs a single test case specified with -Dtestcase=classname with remote debug options turned on." >
|
||||||
<echo>Waiting for debugger on port 5001</echo>
|
<echo>Waiting for debugger on port 5001</echo>
|
||||||
<junit printsummary="no" showoutput="true" filtertrace="no" fork="yes" haltonfailure="${halt.on.test.failure}" failureproperty="main.test.failed">
|
<junit printsummary="no" showoutput="true" filtertrace="no" fork="yes" haltonfailure="${halt.on.test.failure}" failureproperty="main.test.failed">
|
||||||
<jvmarg value="-Xdebug"/>
|
<jvmarg value="-Xdebug"/>
|
||||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=5001,server=y,suspend=y"/>
|
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=5001,server=y,suspend=y"/>
|
||||||
@ -712,29 +712,29 @@ under the License.
|
|||||||
<echo file="${scratchpad.testokfile}" append="false" message="testok"/>
|
<echo file="${scratchpad.testokfile}" append="false" message="testok"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="single-scratchpad-test" depends="compile-scratchpad,-test-property-check" description="Runs a single test case specified with -Dtestcase=classname">
|
<target name="single-scratchpad-test" depends="compile-scratchpad,-test-property-check" description="Runs a single test case specified with -Dtestcase=classname">
|
||||||
<junit printsummary="yes" showoutput="true" filtertrace="no" haltonfailure="false" >
|
<junit printsummary="yes" showoutput="true" filtertrace="no" haltonfailure="false" >
|
||||||
<classpath refid="test.classpath"/>
|
<classpath refid="test.classpath"/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<path refid="scratchpad.classpath"/>
|
<path refid="scratchpad.classpath"/>
|
||||||
<pathelement location="${main.output.dir}"/>
|
<pathelement location="${main.output.dir}"/>
|
||||||
<pathelement location="${scratchpad.output.dir}"/>
|
<pathelement location="${scratchpad.output.dir}"/>
|
||||||
<pathelement location="${scratchpad.output.test.dir}"/>
|
<pathelement location="${scratchpad.output.test.dir}"/>
|
||||||
<pathelement location="${junit.jar1.dir}"/>
|
<pathelement location="${junit.jar1.dir}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
<sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/>
|
<sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/>
|
||||||
<sysproperty key="HPSF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hpsf/data"/>
|
<sysproperty key="HPSF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hpsf/data"/>
|
||||||
<sysproperty key="HWPF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hwpf/data"/>
|
<sysproperty key="HWPF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hwpf/data"/>
|
||||||
<sysproperty key="HSLF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hslf/data"/>
|
<sysproperty key="HSLF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hslf/data"/>
|
||||||
<sysproperty key="HSMF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hsmf/data"/>
|
<sysproperty key="HSMF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hsmf/data"/>
|
||||||
<sysproperty key="HDGF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hdgf/data"/>
|
<sysproperty key="HDGF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hdgf/data"/>
|
||||||
<sysproperty key="java.awt.headless" value="true"/>
|
<sysproperty key="java.awt.headless" value="true"/>
|
||||||
<sysproperty key="java.awt.headless" value="true"/>
|
<sysproperty key="java.awt.headless" value="true"/>
|
||||||
<formatter type="plain" usefile="no"/>
|
<formatter type="plain" usefile="no"/>
|
||||||
<formatter type="xml"/>
|
<formatter type="xml"/>
|
||||||
<test name="${testcase}"/>
|
<test name="${testcase}"/>
|
||||||
</junit>
|
</junit>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="-test-contrib-check">
|
<target name="-test-contrib-check">
|
||||||
<uptodate property="contrib.test.notRequired" targetfile="${contrib.testokfile}">
|
<uptodate property="contrib.test.notRequired" targetfile="${contrib.testokfile}">
|
||||||
@ -1070,110 +1070,110 @@ FORREST_HOME environment variable!</echo>
|
|||||||
|
|
||||||
|
|
||||||
<target name="maven-dist" depends="jar" description="Builds the POM files for a maven distribution, and copies these and the jars to the appropriate locations">
|
<target name="maven-dist" depends="jar" description="Builds the POM files for a maven distribution, and copies these and the jars to the appropriate locations">
|
||||||
<!-- Copy the jar files into the maven jar directory -->
|
<!-- Copy the jar files into the maven jar directory -->
|
||||||
<!-- Same jars as for the main release, only lacking the datestamp -->
|
<!-- Same jars as for the main release, only lacking the datestamp -->
|
||||||
<copy
|
<copy
|
||||||
file="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar"
|
file="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar"
|
||||||
tofile="${mavendist.oap.dir}/jars/${jar.name}-${version.id}.jar" />
|
tofile="${mavendist.oap.dir}/jars/${jar.name}-${version.id}.jar" />
|
||||||
<copy
|
<copy
|
||||||
file="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar"
|
file="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar"
|
||||||
tofile="${mavendist.oap.dir}/jars/${jar.name}-contrib-${version.id}.jar" />
|
tofile="${mavendist.oap.dir}/jars/${jar.name}-contrib-${version.id}.jar" />
|
||||||
<copy
|
<copy
|
||||||
file="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar"
|
file="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar"
|
||||||
tofile="${mavendist.oap.dir}/jars/${jar.name}-scratchpad-${version.id}.jar" />
|
tofile="${mavendist.oap.dir}/jars/${jar.name}-scratchpad-${version.id}.jar" />
|
||||||
|
|
||||||
<!-- TODO: Decide about source jars, and copy them if we have some -->
|
<!-- TODO: Decide about source jars, and copy them if we have some -->
|
||||||
|
|
||||||
<!-- Build the org.apache.poi poms -->
|
<!-- Build the org.apache.poi poms -->
|
||||||
<!-- Copy from the base file, substituting in the version and -->
|
<!-- Copy from the base file, substituting in the version and -->
|
||||||
<!-- artificat, plus doing the core poi dependency as needed -->
|
<!-- artificat, plus doing the core poi dependency as needed -->
|
||||||
|
|
||||||
<!-- Build the main pom -->
|
<!-- Build the main pom -->
|
||||||
<copy
|
<copy
|
||||||
file="poi.pom"
|
file="poi.pom"
|
||||||
tofile="${mavendist.oap.dir}/poms/${jar.name}-${version.id}.pom"
|
tofile="${mavendist.oap.dir}/poms/${jar.name}-${version.id}.pom"
|
||||||
>
|
>
|
||||||
<filterchain>
|
<filterchain>
|
||||||
<replacetokens>
|
<replacetokens>
|
||||||
<token key="VERSION" value="${version.id}" />
|
<token key="VERSION" value="${version.id}" />
|
||||||
<token key="ARTIFICAT" value="poi" />
|
<token key="ARTIFICAT" value="poi" />
|
||||||
</replacetokens>
|
</replacetokens>
|
||||||
<tokenfilter>
|
<tokenfilter>
|
||||||
<filetokenizer/>
|
<filetokenizer/>
|
||||||
<replaceregex pattern="START_NON_MAIN.*END_NON_MAIN_DEPENDENCY" replace="No POI dependency on the main jar" flags="s" />
|
<replaceregex pattern="START_NON_MAIN.*END_NON_MAIN_DEPENDENCY" replace="No POI dependency on the main jar" flags="s" />
|
||||||
</tokenfilter>
|
</tokenfilter>
|
||||||
</filterchain>
|
</filterchain>
|
||||||
</copy>
|
</copy>
|
||||||
<!-- And the contrib pom -->
|
<!-- And the contrib pom -->
|
||||||
<copy
|
<copy
|
||||||
file="poi.pom"
|
file="poi.pom"
|
||||||
tofile="${mavendist.oap.dir}/poms/${jar.name}-contrib-${version.id}.pom"
|
tofile="${mavendist.oap.dir}/poms/${jar.name}-contrib-${version.id}.pom"
|
||||||
>
|
>
|
||||||
<filterchain>
|
<filterchain>
|
||||||
<replacetokens>
|
<replacetokens>
|
||||||
<token key="VERSION" value="${version.id}" />
|
<token key="VERSION" value="${version.id}" />
|
||||||
<token key="ARTIFICAT" value="poi-contrib" />
|
<token key="ARTIFICAT" value="poi-contrib" />
|
||||||
</replacetokens>
|
</replacetokens>
|
||||||
<tokenfilter>
|
<tokenfilter>
|
||||||
<replaceregex pattern="..-- START_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
<replaceregex pattern="..-- START_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
||||||
<replaceregex pattern="..-- END_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
<replaceregex pattern="..-- END_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
||||||
</tokenfilter>
|
</tokenfilter>
|
||||||
</filterchain>
|
</filterchain>
|
||||||
</copy>
|
</copy>
|
||||||
<!-- And the scratchpad pom -->
|
<!-- And the scratchpad pom -->
|
||||||
<copy
|
<copy
|
||||||
file="poi.pom"
|
file="poi.pom"
|
||||||
tofile="${mavendist.oap.dir}/poms/${jar.name}-scratchpad-${version.id}.pom"
|
tofile="${mavendist.oap.dir}/poms/${jar.name}-scratchpad-${version.id}.pom"
|
||||||
>
|
>
|
||||||
<filterchain>
|
<filterchain>
|
||||||
<replacetokens>
|
<replacetokens>
|
||||||
<token key="VERSION" value="${version.id}" />
|
<token key="VERSION" value="${version.id}" />
|
||||||
<token key="ARTIFICAT" value="poi-scratchpad" />
|
<token key="ARTIFICAT" value="poi-scratchpad" />
|
||||||
</replacetokens>
|
</replacetokens>
|
||||||
<tokenfilter>
|
<tokenfilter>
|
||||||
<replaceregex pattern="..-- START_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
<replaceregex pattern="..-- START_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
||||||
<replaceregex pattern="..-- END_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
<replaceregex pattern="..-- END_NON_MAIN_DEPENDENCY --." replace="" flags="s"/>
|
||||||
</tokenfilter>
|
</tokenfilter>
|
||||||
</filterchain>
|
</filterchain>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<!-- Build the poi => org.apache.poi redirect poms -->
|
<!-- Build the poi => org.apache.poi redirect poms -->
|
||||||
<!-- Copy from the base file, substituting in the version+artifact -->
|
<!-- Copy from the base file, substituting in the version+artifact -->
|
||||||
<copy
|
<copy
|
||||||
file="poi-redirect.pom"
|
file="poi-redirect.pom"
|
||||||
tofile="${mavendist.poi.dir}/poms/${jar.name}-${version.id}.pom"
|
tofile="${mavendist.poi.dir}/poms/${jar.name}-${version.id}.pom"
|
||||||
>
|
>
|
||||||
<filterchain><replacetokens>
|
<filterchain><replacetokens>
|
||||||
<token key="VERSION" value="${version.id}" />
|
<token key="VERSION" value="${version.id}" />
|
||||||
<token key="ARTIFICAT" value="poi" />
|
<token key="ARTIFICAT" value="poi" />
|
||||||
</replacetokens></filterchain>
|
</replacetokens></filterchain>
|
||||||
</copy>
|
</copy>
|
||||||
<copy
|
<copy
|
||||||
file="poi-redirect.pom"
|
file="poi-redirect.pom"
|
||||||
tofile="${mavendist.poi.dir}/poms/${jar.name}-contrib-${version.id}.pom"
|
tofile="${mavendist.poi.dir}/poms/${jar.name}-contrib-${version.id}.pom"
|
||||||
>
|
>
|
||||||
<filterchain><replacetokens>
|
<filterchain><replacetokens>
|
||||||
<token key="VERSION" value="${version.id}" />
|
<token key="VERSION" value="${version.id}" />
|
||||||
<token key="ARTIFICAT" value="poi-contrib" />
|
<token key="ARTIFICAT" value="poi-contrib" />
|
||||||
</replacetokens></filterchain>
|
</replacetokens></filterchain>
|
||||||
</copy>
|
</copy>
|
||||||
<copy
|
<copy
|
||||||
file="poi-redirect.pom"
|
file="poi-redirect.pom"
|
||||||
tofile="${mavendist.poi.dir}/poms/${jar.name}-scratchpad-${version.id}.pom"
|
tofile="${mavendist.poi.dir}/poms/${jar.name}-scratchpad-${version.id}.pom"
|
||||||
>
|
>
|
||||||
<filterchain><replacetokens>
|
<filterchain><replacetokens>
|
||||||
<token key="VERSION" value="${version.id}" />
|
<token key="VERSION" value="${version.id}" />
|
||||||
<token key="ARTIFICAT" value="poi-scratchpad" />
|
<token key="ARTIFICAT" value="poi-scratchpad" />
|
||||||
</replacetokens></filterchain>
|
</replacetokens></filterchain>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<!-- And that's it for maven -->
|
<!-- And that's it for maven -->
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jar-14" depends="compile-main-14" description="Creates the jdk 1.4 only jar file">
|
<target name="jar-14" depends="compile-main-14" description="Creates the jdk 1.4 only jar file">
|
||||||
<jar destfile="${dist.dir}/${jar.name}-jdk14-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-jdk14-${version.id}-${DSTAMP}.jar">
|
||||||
<fileset dir="${main14.output.dir}" />
|
<fileset dir="${main14.output.dir}" />
|
||||||
<fileset dir="legal/" />
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<attribute name="Specification-Title" value="Apache POI"/>
|
<attribute name="Specification-Title" value="Apache POI"/>
|
||||||
@ -1184,11 +1184,11 @@ FORREST_HOME environment variable!</echo>
|
|||||||
<attribute name="Implementation-Vendor" value="Apache"/>
|
<attribute name="Implementation-Vendor" value="Apache"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
<target name="jar" depends="compile, jar-14" description="Creates jar files for distribution">
|
<target name="jar" depends="compile, jar-14" description="Creates jar files for distribution">
|
||||||
<jar destfile="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar">
|
||||||
<fileset dir="${main.output.dir}" />
|
<fileset dir="${main.output.dir}" />
|
||||||
<fileset dir="legal/" />
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<attribute name="Specification-Title" value="Apache POI"/>
|
<attribute name="Specification-Title" value="Apache POI"/>
|
||||||
@ -1200,8 +1200,8 @@ FORREST_HOME environment variable!</echo>
|
|||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
<jar destfile="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar">
|
||||||
<fileset dir="${contrib.output.dir}" />
|
<fileset dir="${contrib.output.dir}" />
|
||||||
<fileset dir="legal/" />
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<attribute name="Specification-Title" value="Apache POI"/>
|
<attribute name="Specification-Title" value="Apache POI"/>
|
||||||
@ -1213,8 +1213,8 @@ FORREST_HOME environment variable!</echo>
|
|||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
<jar destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar">
|
||||||
<fileset dir="${scratchpad.output.dir}" />
|
<fileset dir="${scratchpad.output.dir}" />
|
||||||
<fileset dir="legal/" />
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<attribute name="Specification-Title" value="Apache POI"/>
|
<attribute name="Specification-Title" value="Apache POI"/>
|
||||||
@ -1228,8 +1228,8 @@ FORREST_HOME environment variable!</echo>
|
|||||||
</target>
|
</target>
|
||||||
<target name="jar-ooxml" depends="compile-ooxml" description="Creates the ooxml jar files for distribution">
|
<target name="jar-ooxml" depends="compile-ooxml" description="Creates the ooxml jar files for distribution">
|
||||||
<jar destfile="${dist.dir}/${jar.name}-ooxml-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-ooxml-${version.id}-${DSTAMP}.jar">
|
||||||
<fileset dir="${ooxml.output.dir}" />
|
<fileset dir="${ooxml.output.dir}" />
|
||||||
<fileset dir="legal/" />
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<attribute name="Specification-Title" value="Apache POI"/>
|
<attribute name="Specification-Title" value="Apache POI"/>
|
||||||
@ -1245,7 +1245,7 @@ FORREST_HOME environment variable!</echo>
|
|||||||
<target name="dist" depends="clean, fail-unless-tools-are-available, compile, site, jar"
|
<target name="dist" depends="clean, fail-unless-tools-are-available, compile, site, jar"
|
||||||
description="Creates the entire distribution into build/dist, from scratch">
|
description="Creates the entire distribution into build/dist, from scratch">
|
||||||
|
|
||||||
<property name="zipdir" value="${jar.name}-${version.id}" />
|
<property name="zipdir" value="${jar.name}-${version.id}" />
|
||||||
|
|
||||||
<zip destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.zip">
|
<zip destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.zip">
|
||||||
<zipfileset dir="legal/" prefix="${zipdir}" />
|
<zipfileset dir="legal/" prefix="${zipdir}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user