mirror of https://github.com/apache/poi.git
Removng deprecated targets of old centipede version.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38f7ca7177
commit
e8885620b2
|
@ -1,198 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Prepares the build directory -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="prepare" depends="init">
|
|
||||||
<mkdir dir="${build.dir}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Prepares the source code -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="prepare-src" depends="prepare">
|
|
||||||
<mkdir dir="${build.src}"/>
|
|
||||||
<mkdir dir="${build.dest}"/>
|
|
||||||
<copy todir="${build.src}" filtering="on">
|
|
||||||
<fileset dir="${java.dir}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<mkdir dir="${build.scratchpad.src}"/>
|
|
||||||
<mkdir dir="${build.scratchpad.dest}"/>
|
|
||||||
<copy todir="${build.scratchpad.src}" filtering="on">
|
|
||||||
<fileset dir="${scratchpad.src}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<mkdir dir="${build.examples.src}"/>
|
|
||||||
<mkdir dir="${build.examples.dest}"/>
|
|
||||||
<copy todir="${build.examples.src}" filtering="on">
|
|
||||||
<fileset dir="${examples.src}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<mkdir dir="${build.contrib.src}"/>
|
|
||||||
<mkdir dir="${build.contrib.dest}"/>
|
|
||||||
<copy todir="${build.contrib.src}" filtering="on">
|
|
||||||
<fileset dir="${contrib.src}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Compiles the source directory -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="compile" depends="prepare-src"
|
|
||||||
description="Compiles the source code">
|
|
||||||
<copy todir="${build.dest}">
|
|
||||||
<fileset dir="${build.src}">
|
|
||||||
<include name="**"/>
|
|
||||||
<!--
|
|
||||||
<include name="**/Manifest.mf"/>
|
|
||||||
<include name="**/*.xsl"/>
|
|
||||||
<include name="**/*.roles"/>
|
|
||||||
<include name="**/*.xconf"/>
|
|
||||||
<include name="META-INF/**"/>
|
|
||||||
-->
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<echo message="Compiling with Java ${ant.java.version}, debug ${debug}, optimize ${optimize}, deprecation ${deprecation}"/>
|
|
||||||
|
|
||||||
<javac srcdir="${build.src}"
|
|
||||||
destdir="${build.dest}"
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
target="${target.vm}"
|
|
||||||
nowarn="${nowarn}">
|
|
||||||
<classpath refid="classpath"/>
|
|
||||||
</javac>
|
|
||||||
|
|
||||||
<copy todir="${build.scratchpad.dest}">
|
|
||||||
<fileset dir="${build.scratchpad.src}">
|
|
||||||
<include name="**"/>
|
|
||||||
<!--
|
|
||||||
<include name="**/Manifest.mf"/>
|
|
||||||
<include name="**/*.xsl"/>
|
|
||||||
<include name="**/*.roles"/>
|
|
||||||
<include name="**/*.xconf"/>
|
|
||||||
<include name="META-INF/**"/>
|
|
||||||
-->
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<javac srcdir="${build.scratchpad.src}"
|
|
||||||
destdir="${build.scratchpad.dest}"
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
target="${target.vm}">
|
|
||||||
<classpath refid="scratchpad.classpath"/>
|
|
||||||
</javac>
|
|
||||||
|
|
||||||
<copy todir="${build.examples.dest}">
|
|
||||||
<fileset dir="${build.examples.src}">
|
|
||||||
<include name="**"/>
|
|
||||||
<!--
|
|
||||||
<include name="**/Manifest.mf"/>
|
|
||||||
<include name="**/*.xsl"/>
|
|
||||||
<include name="**/*.roles"/>
|
|
||||||
<include name="**/*.xconf"/>
|
|
||||||
<include name="META-INF/**"/>
|
|
||||||
-->
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<javac srcdir="${build.examples.src}"
|
|
||||||
destdir="${build.examples.dest}"
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
target="${target.vm}">
|
|
||||||
<classpath refid="examples.classpath"/>
|
|
||||||
</javac>
|
|
||||||
|
|
||||||
<copy todir="${build.contrib.dest}">
|
|
||||||
<fileset dir="${build.contrib.src}">
|
|
||||||
<include name="**"/>
|
|
||||||
<!--
|
|
||||||
<include name="**/Manifest.mf"/>
|
|
||||||
<include name="**/*.xsl"/>
|
|
||||||
<include name="**/*.roles"/>
|
|
||||||
<include name="**/*.xconf"/>
|
|
||||||
<include name="META-INF/**"/>
|
|
||||||
-->
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<javac srcdir="${build.contrib.src}"
|
|
||||||
destdir="${build.contrib.dest}"
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
target="${target.vm}">
|
|
||||||
<classpath refid="contrib.classpath"/>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Creates the jar file -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="all" depends="package" description="Default target"/>
|
|
||||||
|
|
||||||
<target name="package" depends="compile" description="Generates the jar package">
|
|
||||||
<jar jarfile="${build.dir}/${name}.jar" manifest="${build.src}/Manifest.mf">
|
|
||||||
<fileset dir="${build.dest}">
|
|
||||||
<include name="**"/>
|
|
||||||
<include name="META-INF/**"/>
|
|
||||||
</fileset>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<jar jarfile="${build.dir}/${scratchpad.name}.jar">
|
|
||||||
<fileset dir="${build.scratchpad.dest}">
|
|
||||||
<include name="**"/>
|
|
||||||
</fileset>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<jar jarfile="${build.dir}/${examples.name}.jar">
|
|
||||||
<fileset dir="${build.examples.dest}">
|
|
||||||
<include name="**"/>
|
|
||||||
</fileset>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<jar jarfile="${build.dir}/${contrib.name}.jar">
|
|
||||||
<fileset dir="${build.contrib.dest}">
|
|
||||||
<include name="**"/>
|
|
||||||
</fileset>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Copies the tools.jar to javac.jar in web-inf/lib -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="prepare-tools-lib" depends="package" if="tools.jar.present">
|
|
||||||
<!-- NOTE: java.home is normally set by the JVM to the /jre directory -->
|
|
||||||
<copy file="${tools.jar}" tofile="${build.war}/WEB-INF/lib/javac.jar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Clean targets -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="clean" depends="init" description="* Cleans the build directories">
|
|
||||||
<delete dir="${build.dir}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="cleandocs" depends="init" description="* Cleans the build docs directories">
|
|
||||||
<delete dir="${build.docs}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="distclean" depends="clean" description="* Cleans everything to the original state">
|
|
||||||
<delete dir="${build.root}"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}.tar.gz"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}.tar"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}.zip"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}-src.tar.gz"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}-src.tar"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}-src.zip"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}-bin.tar.gz"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}-bin.tar"/>
|
|
||||||
<delete file="${dist.target}/${Name}-${version}-bin.zip"/>
|
|
||||||
<delete dir="${dist.root}"/>
|
|
||||||
</target>
|
|
|
@ -1,32 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Interactive scratchpad builds -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="contrib" depends="init" description="Interactive Contributors' Build">
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" ${fullname} ${version} CONTRIB"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message="Building with ${ant.version}"/>
|
|
||||||
<echo message="using build file ${ant.file}"/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" These are CONTRIB BUILDS. They are not guaranteed to work."/>
|
|
||||||
<echo message=" You have been warned. "/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" poibrowser - POIBrowser 0.10 GUI POI Viewer"/>
|
|
||||||
<echo message=" -"/>
|
|
||||||
<echo message=" -"/>
|
|
||||||
<echo message=" -"/>
|
|
||||||
<echo message=" -"/>
|
|
||||||
<echo message=" -"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<taskdef name="user-input" classname="UserInput"
|
|
||||||
classpath="./tools/anttasks"/>
|
|
||||||
|
|
||||||
<property name="input.selection" value="poibrowser"/>
|
|
||||||
<user-input name="input.selection">Please select a target </user-input>
|
|
||||||
|
|
||||||
<ant antfile="src/contrib/builds/${input.selection}.xml"/>
|
|
||||||
|
|
||||||
</target>
|
|
|
@ -1,223 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Creates the source distribution -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist-src" depends="docs, javadocs"
|
|
||||||
description="Prepares the source distribution">
|
|
||||||
<!-- Simply copy all and add the html docs -->
|
|
||||||
<mkdir dir="${dist.root}"/>
|
|
||||||
<mkdir dir="${dist.src.dir}"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/lib"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/src"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/src/java"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/src/documentation"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/src/resources"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/src/scratchpad"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/src/testcases"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/src/contrib"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/docs"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/docs/apidocs"/>
|
|
||||||
<mkdir dir="${dist.src.dir}/tools"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<copy todir="${dist.src.dir}/bin">
|
|
||||||
<fileset dir="${bin.dir}"/>
|
|
||||||
</copy> -->
|
|
||||||
<copy todir="${dist.src.dir}/tools">
|
|
||||||
<fileset dir="${tools.dir}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/src/documentation">
|
|
||||||
<fileset dir="${build.context}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/lib">
|
|
||||||
<fileset dir="${lib.dir}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/src/resources" filtering="on">
|
|
||||||
<fileset dir="${resource.dir}">
|
|
||||||
<exclude name="**/*.gif"/>
|
|
||||||
<exclude name="**/*.jpg"/>
|
|
||||||
<exclude name="**/*.png"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/src/resources" filtering="off">
|
|
||||||
<fileset dir="${resource.dir}">
|
|
||||||
<include name="**/*.gif"/>
|
|
||||||
<include name="**/*.jpg"/>
|
|
||||||
<include name="**/*.png"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/src/java" filtering="on">
|
|
||||||
<fileset dir="${java.dir}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/src/scratchpad" filtering="off">
|
|
||||||
<fileset dir="${scratchpad.dir}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/src/contrib" filtering="off">
|
|
||||||
<fileset dir="${contrib.dir}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/src/testcases" filtering="off">
|
|
||||||
<fileset dir="${test.dir}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}/docs">
|
|
||||||
<fileset dir="${build.docs}"/>
|
|
||||||
</copy>
|
|
||||||
<copy todir="${dist.src.dir}/docs/apidocs">
|
|
||||||
<fileset dir="${build.javadocs}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}">
|
|
||||||
<fileset dir="${docs.dir}">
|
|
||||||
<include name="changes.xml, todo.xml"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.src.dir}" filtering="on">
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="README.txt"/>
|
|
||||||
<include name="legal/*"/>
|
|
||||||
<include name="*.bat"/>
|
|
||||||
<include name="*.sh"/>
|
|
||||||
<include name="*.xml"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<chmod perm="+x" file="${dist.src.dir}/build.sh"/>
|
|
||||||
<chmod perm="+x" file="${dist.src.dir}/tools/bin/antRun"/>
|
|
||||||
<fixcrlf srcdir="${dist.src.dir}" includes="**.sh" eol="lf"/>
|
|
||||||
<fixcrlf srcdir="${dist.src.dir}" includes="antRun" eol="lf"/>
|
|
||||||
<fixcrlf srcdir="${dist.src.dir}" includes="**.bat" eol="crlf"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Packages the source distribution as .zip -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist-src-zip" depends="dist-src"
|
|
||||||
description="Generates the source distribution as a .zip file">
|
|
||||||
<zip zipfile="${dist.target}/${dist.name}-src.zip"
|
|
||||||
basedir="${dist.root}/source"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Packages the source distribution with .tar.gzip -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist-src-tgz" depends="dist-src"
|
|
||||||
description="Generates the source distribution as a .tar.gz file">
|
|
||||||
<tar tarfile="${dist.target}/${dist.name}-src.tar"
|
|
||||||
basedir="${dist.root}/source"
|
|
||||||
longfile="gnu"/>
|
|
||||||
<gzip zipfile="${dist.target}/${dist.name}-src.tar.gz"
|
|
||||||
src="${dist.target}/${dist.name}-src.tar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Creates the binary distribution -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist-bin" depends="package, docs, javadocs"
|
|
||||||
description="Prepares the binary distribution">
|
|
||||||
<!-- Copy the html docs -->
|
|
||||||
<mkdir dir="${dist.root}"/>
|
|
||||||
<mkdir dir="${dist.bin.dir}"/>
|
|
||||||
<mkdir dir="${dist.bin.dir}/lib"/>
|
|
||||||
<mkdir dir="${dist.bin.dir}/docs"/>
|
|
||||||
<mkdir dir="${dist.bin.dir}/docs/apidocs"/>
|
|
||||||
|
|
||||||
<copy file="${build.dir}/${name}.jar" tofile="${dist.bin.dir}/lib/${name}-${version}.jar"/>
|
|
||||||
|
|
||||||
<copy todir="${dist.bin.dir}/docs">
|
|
||||||
<fileset dir="${build.docs}"/>
|
|
||||||
</copy>
|
|
||||||
<copy todir="${dist.bin.dir}/docs/apidocs">
|
|
||||||
<fileset dir="${build.javadocs}"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.bin.dir}">
|
|
||||||
<fileset dir="${docs.dir}">
|
|
||||||
<include name="changes.xml, todo.xml"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${dist.bin.dir}" filtering="on">
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="README.txt"/>
|
|
||||||
<include name="legal/*"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Packages the binary distribution as .zip -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist-bin-zip" depends="dist-bin"
|
|
||||||
description="Generates the binary distribution as a .zip file">
|
|
||||||
<zip zipfile="${dist.target}/${dist.name}-bin.zip"
|
|
||||||
basedir="${dist.root}/bin"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Packages the binary distribution with .tar.gzip -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist-bin-tgz" depends="dist-bin"
|
|
||||||
description="Generates the binary distribution as a .tar.gz file">
|
|
||||||
<tar tarfile="${dist.target}/${dist.name}-bin.tar"
|
|
||||||
basedir="${dist.root}/bin"
|
|
||||||
longfile="gnu"/>
|
|
||||||
<gzip zipfile="${dist.target}/${dist.name}-bin.tar.gz"
|
|
||||||
src="${dist.target}/${dist.name}-bin.tar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Build all distributions -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist"
|
|
||||||
depends="dist-info, dist-bin-tgz, dist-bin-zip, dist-src-tgz, dist-src-zip"
|
|
||||||
description="* Generates all distributions (source/binary)">
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Build all distributions -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="dist-info" depends="init">
|
|
||||||
<echo>**********************************************</echo>
|
|
||||||
<echo>*</echo>
|
|
||||||
<echo>* Build all distributions:</echo>
|
|
||||||
<echo>* - source distribution for windows/unix.</echo>
|
|
||||||
<echo>* - binary distribution for windows/unix.</echo>
|
|
||||||
<echo>*</echo>
|
|
||||||
<echo>* This may take a while...</echo>
|
|
||||||
<echo>*</echo>
|
|
||||||
<echo>***********************************************</echo>
|
|
||||||
<echo/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Fix line endings in src -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="fixsrclf" depends="init" description="Fix lf in src directory (internal use only!)">
|
|
||||||
<fixcrlf srcdir="${java.dir}" includes="**/*.java" eol="lf"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="generate-records" depends="prepare"
|
|
||||||
description="Generates the record source code">
|
|
||||||
|
|
||||||
<java classname="org.apache.poi.hssf.util.RecordGenerator" fork="yes">
|
|
||||||
<arg value="src/records/definitions"/>
|
|
||||||
<arg value="src/records/styles"/>
|
|
||||||
<arg value="src/java"/>
|
|
||||||
<arg value="src/testcases"/>
|
|
||||||
<classpath>
|
|
||||||
<path refid="scratchpad.classpath"/>
|
|
||||||
<pathelement location="${build.dest}"/>
|
|
||||||
</classpath>
|
|
||||||
</java>
|
|
||||||
|
|
||||||
</target>
|
|
|
@ -1,230 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Prepares the docs -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="prepare-docs" depends="init">
|
|
||||||
|
|
||||||
<mkdir dir="${build.context}"/>
|
|
||||||
<mkdir dir="${build.context}/images"/>
|
|
||||||
<mkdir dir="${build.docs}"/>
|
|
||||||
<mkdir dir="${build.dir}/work"/>
|
|
||||||
|
|
||||||
<!-- make filtered copy of XML docs -->
|
|
||||||
<copy todir="${build.context}" filtering="on">
|
|
||||||
<fileset dir="${context.dir}">
|
|
||||||
<exclude name="images/**"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Copy images -->
|
|
||||||
<copy todir="${build.context}/images" filtering="off">
|
|
||||||
<fileset dir="${context.dir}/images"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Copy entity catalog and entities -->
|
|
||||||
<copy todir="${build.context}/resources/entities" filtering="on">
|
|
||||||
<fileset dir="${resource.dir}/entities"/>
|
|
||||||
</copy>
|
|
||||||
<mkdir dir="${build.context}/WEB-INF/classes"/>
|
|
||||||
<move todir="${build.context}/WEB-INF/classes">
|
|
||||||
<fileset dir="${build.context}/resources/entities">
|
|
||||||
<include name="CatalogManager.properties"/>
|
|
||||||
</fileset>
|
|
||||||
</move>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Set a variable if the generated docs are already up-to-date. -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="docs_check" depends="init">
|
|
||||||
<uptodate property="docs.notrequired" targetfile="${build.docs}/index.html" >
|
|
||||||
<srcfiles dir="." includes="changes.xml,todo.xml"/>
|
|
||||||
<srcfiles dir="${context.dir}/xdocs" includes="**/*.xml"/>
|
|
||||||
</uptodate>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- If generated docs is already up-to-date, print a message saying so. -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="docs_done" if="docs.notrequired">
|
|
||||||
<echo message="-------------------------------------------------------------"/>
|
|
||||||
<echo message="Not rebuilding docs, as they are up-to-date:"/>
|
|
||||||
<echo message=" ${build.docs}/index.html is more recent than"/>
|
|
||||||
<echo message=" todo.xml, changes.xml, ${context.dir}/xdocs/*.xml"/>
|
|
||||||
<echo message="-------------------------------------------------------------"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- The documentation system -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="docs"
|
|
||||||
depends="package, prepare-docs, docs_check, docs_done"
|
|
||||||
unless="docs.notrequired"
|
|
||||||
description="* Generates the documentation">
|
|
||||||
|
|
||||||
<java classname="org.apache.cocoon.Main" fork="true" dir="${build.context}" failonerror="true">
|
|
||||||
<arg value="-c."/>
|
|
||||||
<arg value="-d../docs"/>
|
|
||||||
<arg value="-w../work"/>
|
|
||||||
<arg value="-l../work/cocoon.log"/>
|
|
||||||
<arg value="-uINFO"/>
|
|
||||||
<arg value="index.html"/>
|
|
||||||
<classpath>
|
|
||||||
<path refid="classpath"/>
|
|
||||||
<fileset dir="${build.dir}">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="${tools.lib.dir}">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<pathelement location="${tools.jar}"/>
|
|
||||||
<pathelement location="${build.context}/WEB-INF/classes"/>
|
|
||||||
</classpath>
|
|
||||||
</java>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Set a variable if the generated printer docs are already up-to-date. -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="printer-docs_check" depends="init">
|
|
||||||
<uptodate property="printer-docs.notrequired" targetfile="${build.docs.printer}/index.html" >
|
|
||||||
<srcfiles dir="." includes="changes.xml,todo.xml"/>
|
|
||||||
<srcfiles dir="${docs.dir}" includes="**/*.xml"/>
|
|
||||||
</uptodate>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- If generated printer docs is already up-to-date, print a message saying so. -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="printer-docs_done" if="printer-docs.notrequired">
|
|
||||||
<echo message="-------------------------------------------------------------"/>
|
|
||||||
<echo message="Not rebuilding printer docs, as they are up-to-date:"/>
|
|
||||||
<echo message=" ${build.docs.printer}/index.html is more recent than"/>
|
|
||||||
<echo message=" todo.xml, changes.xml, ${docs.dir}/*.xml"/>
|
|
||||||
<echo message="-------------------------------------------------------------"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Create the announcements -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="announcement" depends="prepare" description="* Creates the announcement for new releases">
|
|
||||||
|
|
||||||
<copy file="${project-info}" tofile="${build.project-info}" filtering="on"/>
|
|
||||||
|
|
||||||
<style basedir="./" destdir="./" style="${projectinfo2announcement}"
|
|
||||||
includes="project-info.xml" extension=".txt"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Create the text version of projectinfo -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="projectinfo" depends="prepare" description="* Creates the text version of projectinfo">
|
|
||||||
|
|
||||||
<copy file="${project-info}" tofile="${build.project-info}" filtering="on"/>
|
|
||||||
|
|
||||||
<style basedir="./" destdir="./" style="${project-info2txt}"
|
|
||||||
includes="project-info.xml" extension=".txt"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Prepares the printer-docs -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="prepare-printer-docs" depends="prepare-docs">
|
|
||||||
|
|
||||||
<mkdir dir="${build.dir}/printer_documentation"/>
|
|
||||||
|
|
||||||
<!-- copy prepared docs -->
|
|
||||||
<copy todir="${build.dir}/printer_documentation" filtering="off">
|
|
||||||
<fileset dir="${build.context}">
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- copy printer skin -->
|
|
||||||
<copy todir="${build.dir}/printer_documentation/stylesheets" filtering="off" overwrite="yes">
|
|
||||||
<fileset dir="${build.context}/stylesheets/printer_skin">
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Generate printer-friendly HTML docs -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="printer-docs" depends="package, prepare-printer-docs, printer-docs_check, printer-docs_done"
|
|
||||||
unless="printer-docs.notrequired"
|
|
||||||
description="* Generates printer-friendly documentation">
|
|
||||||
<mkdir dir="${build.docs.printer}"/>
|
|
||||||
|
|
||||||
<java classname="org.apache.cocoon.Main" fork="true" dir="${build.dir}/printer_documentation" failonerror="true">
|
|
||||||
<arg value="-c."/>
|
|
||||||
<arg value="-d../printer-docs"/>
|
|
||||||
<arg value="-w../work-printer"/>
|
|
||||||
<arg value="-l../work-printer/cocoon.log"/>
|
|
||||||
<arg value="-uINFO"/>
|
|
||||||
<arg value="index.html"/>
|
|
||||||
<classpath>
|
|
||||||
<path refid="classpath"/>
|
|
||||||
<fileset dir="${build.dir}">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<pathelement location="${tools.jar}"/>
|
|
||||||
<pathelement location="${build.context}/WEB-INF/classes"/>
|
|
||||||
</classpath>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Creates the web site -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="site" depends="docs, javadocs"
|
|
||||||
description="Generates the web site (for site maintainers only)">
|
|
||||||
<mkdir dir="${build.docs}/apidocs"/>
|
|
||||||
<copy todir="${build.docs}/apidocs" filtering="off">
|
|
||||||
<fileset dir="${build.javadocs}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Set a variable if javadoc is already up-to-date. -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="javadocs_check">
|
|
||||||
<uptodate property="javadocs.notrequired" targetfile="${build.javadocs}/packages.html" >
|
|
||||||
<srcfiles dir= "${build.src}" includes="**/*.java"/>
|
|
||||||
</uptodate>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- If javadoc is already up-to-date, print a message saying so. -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="javadocs_done" if="javadocs.notrequired">
|
|
||||||
<echo message="-------------------------------------------------------------"/>
|
|
||||||
<echo message="Not rebuilding Javadocs, as they are up-to-date:"/>
|
|
||||||
<echo message=" ${build.javadocs}/packages.html is more recent than"/>
|
|
||||||
<echo message=" ${build.src}/**/*.java"/>
|
|
||||||
<echo message="-------------------------------------------------------------"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Creates the API documentation -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="javadocs" depends="prepare-src, javadocs_check, javadocs_done"
|
|
||||||
unless="javadocs.notrequired"
|
|
||||||
description="* Generates the API documentation">
|
|
||||||
<mkdir dir="${build.javadocs}"/>
|
|
||||||
<javadoc packagenames="${packages}"
|
|
||||||
sourcepath="${build.src}"
|
|
||||||
destdir="${build.javadocs}"
|
|
||||||
author="true"
|
|
||||||
version="true"
|
|
||||||
use="false"
|
|
||||||
noindex="true"
|
|
||||||
windowtitle="${Name} API"
|
|
||||||
doctitle="${Name}"
|
|
||||||
bottom="Copyright © ${year} ${fullname} project. All Rights Reserved."
|
|
||||||
stylesheetfile="${resource.dir}/javadoc.css">
|
|
||||||
<classpath refid="classpath"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
|
@ -1,107 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Initialization target -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="init">
|
|
||||||
<tstamp/>
|
|
||||||
|
|
||||||
<property name="version" value="1.1-dev"/>
|
|
||||||
<property name="short.version" value="1.1"/>
|
|
||||||
<property name="year" value="2001-2002"/>
|
|
||||||
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message=" ${fullname} [${year}] "/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message="Building with ${ant.version}"/>
|
|
||||||
<echo message="using build file ${ant.file}"/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
|
|
||||||
<property name="debug" value="on"/>
|
|
||||||
<property name="optimize" value="off"/>
|
|
||||||
<property name="deprecation" value="off"/>
|
|
||||||
<property name="nowarn" value="on"/>
|
|
||||||
<property name="build.compiler" value="classic"/>
|
|
||||||
<property name="target.vm" value="1.2"/>
|
|
||||||
|
|
||||||
<property name="src.dir" value="./src"/>
|
|
||||||
<property name="java.dir" value="${src.dir}/java"/>
|
|
||||||
<property name="test.dir" value="${src.dir}/testcases"/>
|
|
||||||
<property name="test.specific" value=""/>
|
|
||||||
<property name="lib.dir" value="./lib"/>
|
|
||||||
<property name="bin.dir" value="./bin"/>
|
|
||||||
<property name="tools.dir" value="./tools"/>
|
|
||||||
<property name="tools.lib.dir" value="${tools.dir}/lib"/>
|
|
||||||
<property name="docs.dir" value="${src.dir}/documentation/xdocs"/>
|
|
||||||
<property name="images.dir" value="${src.dir}/documentation/images"/>
|
|
||||||
<property name="resource.dir" value="${src.dir}/resources"/>
|
|
||||||
<property name="context.dir" value="${src.dir}/documentation"/>
|
|
||||||
|
|
||||||
<property name="scratchpad.dir" value="${src.dir}/scratchpad"/>
|
|
||||||
<property name="scratchpad.src" value="${scratchpad.dir}/src"/>
|
|
||||||
<property name="scratchpad.lib" value="${scratchpad.dir}/lib"/>
|
|
||||||
<property name="scratchpad.name" value="${name}-scratchpad"/>
|
|
||||||
|
|
||||||
<property name="examples.dir" value="${src.dir}/examples"/>
|
|
||||||
<property name="examples.src" value="${examples.dir}/src"/>
|
|
||||||
<property name="examples.lib" value="${examples.dir}/lib"/>
|
|
||||||
<property name="examples.name" value="${name}-examples"/>
|
|
||||||
|
|
||||||
<property name="contrib.dir" value="${src.dir}/contrib"/>
|
|
||||||
<property name="contrib.src" value="${contrib.dir}/src"/>
|
|
||||||
<property name="contrib.lib" value="${contrib.dir}/lib"/>
|
|
||||||
<property name="contrib.name" value="${name}-contrib"/>
|
|
||||||
|
|
||||||
<property name="build.root" value="./build"/>
|
|
||||||
<property name="build.dir" value="${build.root}/${name}"/>
|
|
||||||
<property name="build.src" value="${build.dir}/src"/>
|
|
||||||
<property name="build.test" value="${build.dir}/testcases"/>
|
|
||||||
<property name="build.dest" value="${build.dir}/classes"/>
|
|
||||||
<property name="build.docs" value="${build.dir}/docs"/>
|
|
||||||
<property name="build.xdocs" value="${build.dir}/xdocs"/>
|
|
||||||
<property name="build.docs.printer" value="${build.dir}/printer-docs"/>
|
|
||||||
<property name="build.javadocs" value="${build.dir}/javadocs"/>
|
|
||||||
<property name="build.context" value="${build.dir}/documentation"/>
|
|
||||||
<property name="build.scratchpad" value="${build.dir}/scratchpad"/>
|
|
||||||
<property name="build.scratchpad.src" value="${build.scratchpad}/src"/>
|
|
||||||
<property name="build.scratchpad.dest" value="${build.scratchpad}/classes"/>
|
|
||||||
<property name="build.examples" value="${build.dir}/examples"/>
|
|
||||||
<property name="build.examples.src" value="${build.examples}/src"/>
|
|
||||||
<property name="build.examples.dest" value="${build.examples}/classes"/>
|
|
||||||
<property name="build.contrib" value="${build.dir}/contrib"/>
|
|
||||||
<property name="build.contrib.src" value="${build.contrib}/src"/>
|
|
||||||
<property name="build.contrib.dest" value="${build.contrib}/classes"/>
|
|
||||||
<property name="build.patchqueue" value="${build.dir}/patchqueue"/>
|
|
||||||
|
|
||||||
<property name="dist.root" value="./dist"/>
|
|
||||||
<property name="dist.name" value="${name}-${version}"/>
|
|
||||||
<property name="dist.dir" value="${dist.root}/${dist.name}"/>
|
|
||||||
<property name="dist.src.dir" value="${dist.root}/source/${dist.name}"/>
|
|
||||||
<property name="dist.bin.dir" value="${dist.root}/bin/${dist.name}"/>
|
|
||||||
<property name="dist.target" value="${dist.root}"/>
|
|
||||||
|
|
||||||
<property name="site" value="../xml-site/targets/${name}"/>
|
|
||||||
|
|
||||||
<property name="project-info" value="./project-info.xml"/>
|
|
||||||
<property name="build.project-info" value="${build.dir}/project-info.xml"/>
|
|
||||||
<property name="project-info2txt" value="${src.dir}/documentation/stylesheets/projectinfo2txt.xsl"/>
|
|
||||||
<property name="projectinfo2announcement" value="${src.dir}/documentation/stylesheets/projectinfo2announcement.xsl"/>
|
|
||||||
<property name="projectinfo2todo" value="${src.dir}/documentation/stylesheets/projectinfo2todo.xsl"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The location of tools.jar, relative to the JAVA_HOME home.
|
|
||||||
-->
|
|
||||||
<property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
|
|
||||||
<available file="${tools.jar}" property="tools.jar.present"/>
|
|
||||||
|
|
||||||
<filter token="Name" value="${fullname}"/>
|
|
||||||
<filter token="name" value="${fullname}"/>
|
|
||||||
<filter token="year" value="${year}"/>
|
|
||||||
<filter token="version" value="${version}"/>
|
|
||||||
<filter token="date" value="${TODAY}"/>
|
|
||||||
<filter token="log" value="true"/>
|
|
||||||
<filter token="verbose" value="true"/>
|
|
||||||
|
|
||||||
<!-- compile the ant tasks -->
|
|
||||||
<mkdir dir="${tools.dir}/anttasks"/>
|
|
||||||
<javac srcdir="${tools.dir}/src" destdir="${tools.dir}/anttasks"/>
|
|
||||||
|
|
||||||
</target>
|
|
|
@ -1,34 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Interactive build -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="interactive" description="Interactive Build" depends="init">
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" ${fullname} ${version} [${year}] "/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message="Building with ${ant.version}"/>
|
|
||||||
<echo message="using build file ${ant.file}"/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message=" These are the most common build targets."/>
|
|
||||||
<echo message=" You can also invoke them directly; see build.xml for more info. "/>
|
|
||||||
<echo message=" Builds will be in /build directory, distributions in /dist."/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" compile ----------- compiles the source code "/>
|
|
||||||
<echo message=" docs -------------- generates the html docs"/>
|
|
||||||
<echo message=" cleandocs --------- cleans the build docs directory"/>
|
|
||||||
<echo message=" javadocs ---------- generates the API documentation"/>
|
|
||||||
<echo message=" test -------------- performs the jUnit tests"/>
|
|
||||||
<echo message=" clean ------------- cleans the build directory"/>
|
|
||||||
<echo message=" dist -------------- creates src and bin distributions"/>
|
|
||||||
<echo message=" contrib ----------- build-run contributed components"/>
|
|
||||||
<echo message=" generate-records -- generate records from xml"/>
|
|
||||||
<taskdef name="user-input" classname="UserInput"
|
|
||||||
classpath="./tools/anttasks"/>
|
|
||||||
|
|
||||||
<property name="input.selection" value="compile"/>
|
|
||||||
<user-input name="input.selection">Please select a target </user-input>
|
|
||||||
|
|
||||||
<antcall target="${input.selection}"/>
|
|
||||||
|
|
||||||
</target>
|
|
|
@ -1,71 +0,0 @@
|
||||||
<!--
|
|
||||||
Give user a chance to override without editing this file
|
|
||||||
(and without typing -D each time he compiles it)
|
|
||||||
-->
|
|
||||||
<property file=".ant.properties"/>
|
|
||||||
<property file="${user.home}/.ant.properties"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
these are here only for those who use jikes compiler. For other
|
|
||||||
developers this part makes no difference.
|
|
||||||
-->
|
|
||||||
<property name="build.compiler.emacs" value="on"/>
|
|
||||||
<!-- property name="build.compiler.warnings" value="true"/ -->
|
|
||||||
<property name="build.compiler.pedantic" value="false"/>
|
|
||||||
<property name="build.compiler.depend" value="true"/>
|
|
||||||
<property name="build.compiler.fulldepend" value="true"/>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Project names -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
|
|
||||||
<property name="fullname" value="JAKARTA POI"/>
|
|
||||||
<property name="Name" value="Jakarta Poi"/>
|
|
||||||
<property name="name" value="jakarta-poi"/>
|
|
||||||
<property name="packages" value="org.apache.poi.*"/>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Indentify Classpath -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<path id="classpath">
|
|
||||||
<fileset dir="./lib/core">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="./lib/optional">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<path id="scratchpad.classpath">
|
|
||||||
<fileset dir="./lib/core">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="./lib/optional">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="./src/scratchpad/lib">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<!-- FIXME : how to build a path that references a property set in 'init' target ? -->
|
|
||||||
<pathelement path="./build/${name}/scratchpad/classes"/>
|
|
||||||
<pathelement path="./build/${name}/classes"/>
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<path id="examples.classpath">
|
|
||||||
<!-- FIXME : how to build a path that references a property set in 'init' target ? -->
|
|
||||||
<pathelement path="./build/${name}/classes"/>
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<path id="contrib.classpath">
|
|
||||||
<fileset dir="./lib/core">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="./lib/optional">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="./src/contrib/lib">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
<!-- FIXME : how to build a path that references a property set in 'init' target ? -->
|
|
||||||
<pathelement path="./build/${name}/classes"/>
|
|
||||||
</path>
|
|
|
@ -1,75 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Gets pending patches from bugzilla and cleans html -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="prepare-patchqueue" depends="init" description="Patch queue 2 mail">
|
|
||||||
<mkdir dir="${build.patchqueue}"/>
|
|
||||||
<get src="http://nagoya.apache.org/bugzilla/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Cocoon+2&short_desc=%5BPATCH%5D&short_desc_type=anywordssubstr&long_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&namedcmd=cocoon+patch+queue&newqueryname=&order=Reuse+same+sort+as+last+time"
|
|
||||||
dest="${build.patchqueue}/bugzillapatchqueue.html"
|
|
||||||
verbose="true"
|
|
||||||
usetimestamp="true"
|
|
||||||
ignoreerrors="true"/>
|
|
||||||
|
|
||||||
<taskdef name="jtidy" classname="JTidyTask"
|
|
||||||
classpath="${tools.dir}/anttasks"/>
|
|
||||||
|
|
||||||
<jtidy src="${build.patchqueue}/bugzillapatchqueue.html"
|
|
||||||
dest="${build.patchqueue}/bugzillapatchqueue.xhtml"
|
|
||||||
log="${build.patchqueue}/bugzillapatchqueue.log"
|
|
||||||
summary="true"
|
|
||||||
warn="true"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Transforms bugzilla patches html into xml -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="patchqueue-xml" depends="prepare-patchqueue">
|
|
||||||
<copy file="${tools.dir}/src/bugzilla2patchqueue.xsl" tofile="${build.patchqueue}/bugzilla2patchqueue.xsl"/>
|
|
||||||
<style basedir="${build.patchqueue}"
|
|
||||||
destdir="${build.patchqueue}"
|
|
||||||
includes="bugzillapatchqueue.xhtml"
|
|
||||||
extension=".xml"
|
|
||||||
style="bugzilla2patchqueue.xsl"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Makes patches.xml for xdocs using bugzilla patches xml -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="patchqueue-xdocs" depends="patchqueue-xml">
|
|
||||||
<copy file="${tools.dir}/src/patchqueue2xdocs.xsl" tofile="${build.patchqueue}/patchqueue2xdocs.xsl"/>
|
|
||||||
|
|
||||||
<style basedir="${build.patchqueue}"
|
|
||||||
destdir="${build.patchqueue}"
|
|
||||||
includes="bugzillapatchqueue.xml"
|
|
||||||
extension=".xdoc"
|
|
||||||
style="patchqueue2xdocs.xsl"/>
|
|
||||||
|
|
||||||
<copy file="${build.patchqueue}/bugzillapatchqueue.xdoc" tofile="${docs.dir}/patches.xml"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Sends a notification of the current patch queue to the mailing list -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="patchqueue" depends="patchqueue-xdocs">
|
|
||||||
<copy file="${tools.dir}/src/patchqueue2text4dev.xsl" tofile="${build.patchqueue}/patchqueue2text4dev.xsl"/>
|
|
||||||
<style basedir="${build.patchqueue}"
|
|
||||||
destdir="${build.patchqueue}"
|
|
||||||
includes="bugzillapatchqueue.xml"
|
|
||||||
extension=".txt"
|
|
||||||
style="patchqueue2text4dev.xsl"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Sends a notification of the current patch queue to the mailing list -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="patchqueue-notify" depends="patchqueue">
|
|
||||||
<mail from="patch-queue@nicolaken.com"
|
|
||||||
tolist="cocoon-dev@xml.apache.org"
|
|
||||||
mailhost="192.4.0.155"
|
|
||||||
subject="DO NOT REPLY [PATCH QUEUE] Summary ${TODAY}"
|
|
||||||
files="${build.patchqueue}/bugzillapatchqueue.txt"/>
|
|
||||||
|
|
||||||
</target>
|
|
|
@ -1,32 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Interactive scratchpad builds -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="scratchpad" depends="init" description="Interactive Scratchpad Build">
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" ${fullname} ${version} SCRATCHPAD "/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message="Building with ${ant.version}"/>
|
|
||||||
<echo message="using build file ${ant.file}"/>
|
|
||||||
<echo message="--------------------------------------------------------------"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" These are SCRATCHPAD BUILDS. They are not guaranteed to work."/>
|
|
||||||
<echo message=" You have been warned. "/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<echo message=" --------------"/>
|
|
||||||
<echo message=" --------------"/>
|
|
||||||
<echo message=" --------------"/>
|
|
||||||
<echo message=" --------------"/>
|
|
||||||
<echo message=" --------------"/>
|
|
||||||
<echo message=" --------------"/>
|
|
||||||
<echo message=" "/>
|
|
||||||
<taskdef name="user-input" classname="UserInput"
|
|
||||||
classpath="./tools/anttasks"/>
|
|
||||||
|
|
||||||
<property name="input.selection" value=""/>
|
|
||||||
<user-input name="input.selection">Please select a target </user-input>
|
|
||||||
|
|
||||||
<ant antfile="src/scratchpad/${input.selection}/build.xml"/>
|
|
||||||
|
|
||||||
</target>
|
|
|
@ -1,44 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Test targets -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="test" depends="compile" description="Perform jUnit tests">
|
|
||||||
<mkdir dir="${build.test}"/>
|
|
||||||
<!-- Copy test files to build test dir -->
|
|
||||||
<copy todir="${build.test}" filtering="on">
|
|
||||||
<fileset dir="${test.dir}/${test.specific}"/>
|
|
||||||
</copy>
|
|
||||||
<!-- Compile tests -->
|
|
||||||
<javac srcdir="${build.test}"
|
|
||||||
destdir="${build.test}"
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
target="${target.vm}">
|
|
||||||
<classpath refid="classpath"/>
|
|
||||||
<classpath>
|
|
||||||
<pathelement path="${build.dest}" />
|
|
||||||
</classpath>
|
|
||||||
</javac>
|
|
||||||
<junit printsummary="yes" haltonfailure="yes" fork="yes">
|
|
||||||
<sysproperty key="UTIL.testdata.path"
|
|
||||||
value="${test.dir}/org/apache/poi/util/data"/>
|
|
||||||
<sysproperty key="HSSF.testdata.path"
|
|
||||||
value="${test.dir}/org/apache/poi/hssf/data"/>
|
|
||||||
<classpath>
|
|
||||||
<pathelement location="${build.test}" />
|
|
||||||
<pathelement location="${build.dest}" />
|
|
||||||
<pathelement path="${java.class.path}" />
|
|
||||||
</classpath>
|
|
||||||
<classpath refid="classpath"/>
|
|
||||||
<formatter type="plain" usefile="no" />
|
|
||||||
<batchtest>
|
|
||||||
<fileset dir="${build.test}">
|
|
||||||
<include name="**/test/*TestCase.class"/>
|
|
||||||
<include name="**/*Test.class" />
|
|
||||||
<include name="**/Test*.class" />
|
|
||||||
<exclude name="**/AllTest.class" />
|
|
||||||
<exclude name="**/*$$*Test.class" />
|
|
||||||
</fileset>
|
|
||||||
</batchtest>
|
|
||||||
</junit>
|
|
||||||
</target>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<!-- try.xml ... these are trial build targets which are currently
|
|
||||||
undergoing testing. When ready they can be moved into the main build.xml -->
|
|
||||||
|
|
||||||
<project default="trial-init" basedir="." name="Trial builds">
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Initialization target -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="trial-init">
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
||||||
|
|
||||||
<!-- End of file -->
|
|
|
@ -1,15 +0,0 @@
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Print out warnings for optional components -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="optional-warnings"
|
|
||||||
description="Outputs warnings if some optional jars are missing from the environment">
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<!-- Try other builds that could go into this core build -->
|
|
||||||
<!-- =================================================================== -->
|
|
||||||
<target name="try"
|
|
||||||
depends="init"
|
|
||||||
description="Builds to try before including in main build">
|
|
||||||
<ant target="${try.target}" antfile="./tools/targets/try.xml"/>
|
|
||||||
</target>
|
|
Loading…
Reference in New Issue