2003-12-13 18:28:43 -05:00
|
|
|
<!-- $Id: build.xml,v 1.54 2003/12/13 23:28:43 scolebourne Exp $ -->
|
2001-08-17 19:00:26 -04:00
|
|
|
<project name="commons-collections" default="test" basedir=".">
|
|
|
|
|
|
|
|
<!-- patternset describing files to be copied from the doc directory -->
|
|
|
|
<patternset id="patternset-doc"/>
|
|
|
|
|
|
|
|
<!-- patternset describing test classes -->
|
|
|
|
<patternset id="patternset-test-classes">
|
2003-10-02 19:46:54 -04:00
|
|
|
<include name="**/AbstractTest*.class"/>
|
|
|
|
<include name="**/BulkTest*.class"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
<include name="**/Test*.class"/>
|
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<!-- patternset describing non test classes -->
|
|
|
|
<patternset id="patternset-non-test-classes">
|
|
|
|
<include name="**/*.class"/>
|
2003-10-02 19:46:54 -04:00
|
|
|
<exclude name="**/AbstractTest*.class"/>
|
|
|
|
<exclude name="**/BulkTest*.class"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
<exclude name="**/Test*.class"/>
|
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<!-- patternset describing non test source files (*.java, *html, etc.) -->
|
|
|
|
<patternset id="patternset-javadocable-sources">
|
|
|
|
<include name="**/*"/>
|
2003-10-02 19:46:54 -04:00
|
|
|
<exclude name="**/AbstractTest*.java"/>
|
|
|
|
<exclude name="**/BulkTest*.java"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
<exclude name="**/Test*.java"/>
|
|
|
|
</patternset>
|
|
|
|
|
2003-10-02 19:46:54 -04:00
|
|
|
<!-- patternset describing test framework classes -->
|
|
|
|
<patternset id="patternset-testframework-classes">
|
|
|
|
<include name="**/AbstractTest*.class"/>
|
|
|
|
<include name="**/BulkTest*.class"/>
|
|
|
|
</patternset>
|
|
|
|
|
2003-11-22 07:06:34 -05:00
|
|
|
<!-- patternset describing test framework classes -->
|
2003-10-05 19:12:15 -04:00
|
|
|
<patternset id="patternset-testframework-source">
|
2003-11-25 21:26:42 -05:00
|
|
|
<include name="**/AbstractTest*.java"/>
|
|
|
|
<include name="**/BulkTest*.java"/>
|
2003-11-22 07:06:34 -05:00
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<!-- patternset describing test framework source not dependent on collections jar -->
|
|
|
|
<patternset id="patternset-testframework-validate">
|
|
|
|
<include name="**/AbstractTestObject.java"/>
|
|
|
|
<include name="**/AbstractTestCollection.java"/>
|
|
|
|
<include name="**/AbstractTestSet.java"/>
|
|
|
|
<include name="**/AbstractTestSortedSet.java"/>
|
|
|
|
<include name="**/AbstractTestList.java"/>
|
|
|
|
<include name="**/AbstractTestMap.java"/>
|
|
|
|
<include name="**/AbstractTestSortedMap.java"/>
|
|
|
|
<include name="**/AbstractTestComparator.java"/>
|
|
|
|
<include name="**/AbstractTestIterator.java"/>
|
|
|
|
<include name="**/AbstractTestListIterator.java"/>
|
|
|
|
<include name="**/AbstractTestMapEntry.java"/>
|
|
|
|
<include name="**/BulkTest.java"/>
|
2003-10-05 19:12:15 -04:00
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<patternset id="patternset-exclude-distros">
|
|
|
|
<exclude name="**/*.gz"/>
|
|
|
|
<exclude name="**/*.zip"/>
|
|
|
|
<exclude name="**/classes/**"/>
|
|
|
|
<exclude name="**/classestestframework/**"/>
|
|
|
|
|
|
|
|
|
|
|
|
</patternset>
|
|
|
|
|
2001-08-17 19:00:26 -04:00
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
|
|
|
<target name="init">
|
2003-01-06 19:08:38 -05:00
|
|
|
<tstamp>
|
|
|
|
<format property="year" pattern="yyyy"/>
|
|
|
|
</tstamp>
|
2001-08-17 19:00:26 -04:00
|
|
|
|
|
|
|
<!-- read properties from the build.properties, if any -->
|
|
|
|
<property name="component-propfile" value="${basedir}/build.properties"/>
|
|
|
|
<property file="${component-propfile}"/>
|
|
|
|
|
|
|
|
<!-- read properties from the commons build.properties, if any -->
|
|
|
|
<property name="commons-propfile" value="${basedir}/../build.properties"/>
|
|
|
|
<property file="${commons-propfile}"/>
|
|
|
|
|
|
|
|
<!-- read properties from the ${user.home}/propfile, if any -->
|
|
|
|
<property name="user-propfile" value="${user.home}/build.properties"/>
|
|
|
|
<property file="${user-propfile}"/>
|
|
|
|
|
|
|
|
<!-- command line classpath, if any -->
|
|
|
|
<property name="cp" value=""/>
|
|
|
|
|
|
|
|
<!-- now combine the classpaths -->
|
|
|
|
<property name="classpath" value="${cp}:${junit.jar}"/>
|
|
|
|
|
|
|
|
<property name="name" value="commons-collections"/>
|
|
|
|
<property name="Name" value="Commons-Collections"/>
|
2003-10-05 19:12:15 -04:00
|
|
|
<property name="Name-Long" value="Apache Jakarta Commons Collections"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
|
|
|
|
<!-- The current version number of this component -->
|
2003-01-06 07:54:57 -05:00
|
|
|
<property name="component.version" value="2.1"/>
|
2003-09-29 18:46:15 -04:00
|
|
|
<property name="doc.release.notes" value="RELEASE-NOTES.html"/>
|
2002-03-15 12:28:41 -05:00
|
|
|
<property name="doc.status" value="STATUS.html"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
|
2003-10-02 16:36:11 -04:00
|
|
|
<property name="test.entry" value="org.apache.commons.collections.TestAllPackages"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
<property name="test.failonerror" value="true" />
|
|
|
|
<property name="test.runner" value="junit.textui.TestRunner" />
|
|
|
|
|
|
|
|
<property name="workdir" value="${java.io.tmpdir}/buildtemp_${DSTAMP}${TSTAMP}"/>
|
|
|
|
<property name="source" value="${basedir}"/>
|
|
|
|
<property name="source.src" value="${basedir}/src"/>
|
|
|
|
<property name="source.src.java" value="${source.src}/java"/>
|
|
|
|
<property name="source.src.test" value="${source.src}/test"/>
|
|
|
|
<property name="source.doc" value="${basedir}/doc"/>
|
|
|
|
<property name="dest" value="${basedir}/dist"/>
|
|
|
|
<property name="dest.classes" value="${dest}/classes"/>
|
2003-10-05 19:12:15 -04:00
|
|
|
<property name="dest.classes.testframework" value="${dest}/classestestframework"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
<property name="dest.doc" value="${dest}/docs"/>
|
|
|
|
<property name="dest.doc.api" value="${dest.doc}/api"/>
|
2003-10-05 19:12:15 -04:00
|
|
|
<property name="dest.doc.testframework" value="${dest.doc}/testframework"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
<property name="dest.jardir" value="${dest}"/>
|
|
|
|
<property name="dest.jardir.jar" value="${dest.jardir}/${name}.jar"/>
|
2003-10-02 19:46:54 -04:00
|
|
|
<property name="dest.jardir.testframework.jar" value="${dest.jardir}/${name}-testframework.jar"/>
|
2003-10-01 16:03:35 -04:00
|
|
|
<property name="dest.jardir.object-jar" value="${dest.jardir}/${name}-object.jar"/>
|
2003-09-16 01:32:54 -04:00
|
|
|
<property name="dest.jardir.primitive-jar" value="${dest.jardir}/${name}-primitive.jar"/>
|
2002-03-28 00:13:54 -05:00
|
|
|
|
|
|
|
<property name="bin.name" value="${name}-${component.version}"/>
|
|
|
|
<property name="dest.bin.tar" value="${dest}/${bin.name}.tar"/>
|
|
|
|
<property name="dest.bin.tar.gz" value="${dest}/${bin.name}.tar.gz"/>
|
|
|
|
<property name="dest.bin.zip" value="${dest}/${bin.name}.zip"/>
|
|
|
|
|
2002-03-28 01:50:15 -05:00
|
|
|
<property name="src.name" value="${bin.name}-src"/>
|
2003-01-06 07:54:57 -05:00
|
|
|
<property name="dest.src.tar" value="${dest}/${src.name}.tar"/>
|
|
|
|
<property name="dest.src.tar.gz" value="${dest}/${src.name}.tar.gz"/>
|
|
|
|
<property name="dest.src.zip" value="${dest}/${src.name}.zip"/>
|
2003-01-06 07:54:05 -05:00
|
|
|
|
|
|
|
<property name="javac.debug" value="true"/>
|
|
|
|
<property name="javac.deprecation" value="true"/>
|
|
|
|
<property name="javac.optimize" value="true"/>
|
|
|
|
|
2002-03-28 01:50:15 -05:00
|
|
|
<!-- set the cvs.root property in the build.properties file -->
|
2002-10-20 20:33:59 -04:00
|
|
|
<property name="cvs.tag" value="COLLECTIONS_2_1"/>
|
2002-03-28 00:13:54 -05:00
|
|
|
|
2001-08-17 19:00:26 -04:00
|
|
|
<available property="available-doc" file="${source.doc}"/> <!-- does this module have docs? -->
|
|
|
|
<available property="available-src-java" file="${source.src.java}"/> <!-- does this module have java src? -->
|
|
|
|
<available property="available-src-test" file="${source.src.test}"/> <!-- does this module have test src? -->
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
|
|
|
<target name="copy-javadoc-source" depends="init" if="available-src-java">
|
|
|
|
<mkdir dir="${javadoc-source-dir}"/>
|
|
|
|
<copy todir="${javadoc-source-dir}" filtering="no">
|
|
|
|
<fileset dir="${source.src.java}">
|
|
|
|
<patternset refid="patternset-javadocable-sources"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="copy-doc" depends="init" if="available-doc">
|
|
|
|
<mkdir dir="${doc-source-dir}/${name}"/>
|
|
|
|
<copy todir="${doc-source-dir}/${name}" filtering="no">
|
|
|
|
<fileset dir="${source.doc}">
|
|
|
|
<patternset refid="patternset-doc"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
|
|
|
<target name="clean" depends="init" description="removes generated files">
|
|
|
|
<delete dir="${dest}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean-doc" depends="init,clean-javadoc">
|
|
|
|
<delete dir="${dest.doc}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean-javadoc" depends="init">
|
|
|
|
<delete dir="${dest.doc.api}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean-build" depends="init">
|
|
|
|
<delete dir="${dest.classes}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean-dist" depends="init">
|
|
|
|
<delete file="${dest.jardir.jar}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
2003-10-05 19:12:15 -04:00
|
|
|
<target name="doc"
|
|
|
|
depends="init,doc-top,doc-copy,doc-javadoc,doc-javadoc-testframework"
|
|
|
|
description="generates javadocs and other documentation">
|
2001-08-17 19:00:26 -04:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="doc-top" depends="init">
|
|
|
|
<mkdir dir="${dest}"/>
|
2002-07-25 14:08:05 -04:00
|
|
|
<copy todir="${dest}" file="./LICENSE.txt"/>
|
2002-03-15 12:28:41 -05:00
|
|
|
<copy todir="${dest}" file="${doc.status}"/>
|
|
|
|
<copy todir="${dest}" file="${doc.release.notes}"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="doc-copy" depends="init" if="available-doc">
|
|
|
|
<mkdir dir="${dest.doc}"/>
|
|
|
|
<copy todir="${dest.doc}">
|
|
|
|
<fileset dir="${source.doc}">
|
|
|
|
<patternset refid="patternset-doc"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="doc-javadoc" depends="init" if="available-src-java">
|
|
|
|
<!-- copy all the non-test sources out to the work directory and javadoc that -->
|
|
|
|
<mkdir dir="${workdir}"/>
|
|
|
|
<copy todir="${workdir}">
|
|
|
|
<fileset dir="${source.src.java}">
|
|
|
|
<patternset refid="patternset-javadocable-sources"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<mkdir dir="${dest.doc.api}"/>
|
|
|
|
<javadoc packagenames="org.*"
|
|
|
|
sourcepath="${workdir}"
|
|
|
|
destdir="${dest.doc.api}"
|
|
|
|
windowtitle="${Name-Long}"
|
|
|
|
doctitle="${Name-Long}"
|
2003-01-06 19:08:38 -05:00
|
|
|
bottom="<small>Copyright &copy; 2001-${year} Apache Software Foundation. Documenation generated ${TODAY}</small>."
|
2003-10-09 17:00:05 -04:00
|
|
|
protected="true"
|
2001-08-17 19:00:26 -04:00
|
|
|
version="true"
|
|
|
|
author="true"
|
|
|
|
overview="${source.src.java}/org/apache/commons/collections/package.html"
|
|
|
|
splitindex="false"
|
|
|
|
nodeprecated="true"
|
|
|
|
nodeprecatedlist="true"
|
|
|
|
notree="true"
|
|
|
|
noindex="false"
|
|
|
|
nohelp="true"
|
|
|
|
nonavbar="false"
|
|
|
|
serialwarn="false">
|
2003-12-13 18:28:43 -05:00
|
|
|
<link href="http://java.sun.com/j2se/1.3/docs/api/"/>
|
2003-10-05 19:12:15 -04:00
|
|
|
</javadoc>
|
|
|
|
<delete dir="${workdir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="doc-javadoc-testframework" depends="init" if="available-src-test">
|
|
|
|
<!-- copy all the relevant sources out to the work directory and javadoc that -->
|
|
|
|
<mkdir dir="${workdir}"/>
|
|
|
|
<copy todir="${workdir}">
|
2003-11-25 21:26:42 -05:00
|
|
|
<fileset dir="${source.src}/test">
|
2003-10-05 19:12:15 -04:00
|
|
|
<patternset refid="patternset-testframework-source"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<mkdir dir="${dest.doc.testframework}"/>
|
|
|
|
<javadoc packagenames="org.*"
|
|
|
|
sourcepath="${workdir}"
|
|
|
|
destdir="${dest.doc.testframework}"
|
|
|
|
windowtitle="Apache Jakarta Commons Collections Test Framework"
|
|
|
|
doctitle="Apache Jakarta Commons Collections Test Framework"
|
|
|
|
bottom="<small>Copyright &copy; 2001-${year} Apache Software Foundation. Documenation generated ${TODAY}</small>."
|
|
|
|
version="true"
|
|
|
|
author="true"
|
|
|
|
overview="${source.src.test}/org/apache/commons/collections/overview.html"
|
|
|
|
splitindex="false"
|
|
|
|
nodeprecated="true"
|
|
|
|
nodeprecatedlist="true"
|
|
|
|
notree="true"
|
|
|
|
noindex="true"
|
|
|
|
nohelp="true"
|
|
|
|
nonavbar="false"
|
|
|
|
serialwarn="false">
|
2001-08-17 19:00:26 -04:00
|
|
|
<link href="http://java.sun.com/products/jdk/1.3/docs/api"/>
|
|
|
|
</javadoc>
|
|
|
|
<delete dir="${workdir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
|
|
|
<target name="build" depends="init,build-java" description="compiles source files"/>
|
|
|
|
|
|
|
|
<target name="build-java" depends="init" if="available-src-java">
|
|
|
|
<mkdir dir="${dest.classes}"/>
|
|
|
|
<javac destdir="${dest.classes}"
|
|
|
|
srcdir="${source.src.java}"
|
|
|
|
classpath="${classpath}"
|
2003-01-06 07:54:05 -05:00
|
|
|
debug="${javac.debug}"
|
|
|
|
deprecation="${javac.deprecation}"
|
|
|
|
optimize="${javac.optimize}"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build-test" depends="init,build-java" if="available-src-test">
|
|
|
|
<mkdir dir="${dest.classes}"/>
|
|
|
|
<javac destdir="${dest.classes}"
|
|
|
|
srcdir="${source.src.test}"
|
|
|
|
classpath="${classpath}"
|
2003-01-06 07:54:05 -05:00
|
|
|
debug="${javac.debug}"
|
2003-10-10 17:13:36 -04:00
|
|
|
deprecation="false"
|
2003-01-06 07:54:05 -05:00
|
|
|
optimize="${javac.optimize}"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
</target>
|
|
|
|
|
2003-10-05 19:12:15 -04:00
|
|
|
<!-- validation build to ensure that testframework is independent -->
|
|
|
|
<target name="validate-build-testframework" depends="init" if="available-src-test">
|
|
|
|
<delete dir="${dest.classes.testframework}"/>
|
|
|
|
<mkdir dir="${dest.classes.testframework}"/>
|
|
|
|
<copy todir="${dest.classes.testframework}">
|
|
|
|
<fileset dir="${source.src}">
|
2003-11-22 07:06:34 -05:00
|
|
|
<patternset refid="patternset-testframework-validate"/>
|
2003-10-05 19:12:15 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<javac destdir="${dest.classes.testframework}"
|
|
|
|
srcdir="${dest.classes.testframework}"
|
|
|
|
classpath="${classpath}"
|
|
|
|
debug="${javac.debug}"
|
|
|
|
deprecation="${javac.deprecation}"
|
|
|
|
optimize="${javac.optimize}"/>
|
|
|
|
</target>
|
|
|
|
|
2001-08-17 19:00:26 -04:00
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
|
|
|
<target name="test" depends="build-test" if="test.entry" description="runs (junit) unit tests">
|
|
|
|
<!--
|
|
|
|
<junit printsummary="yes" fork="on" haltonfailure="yes">
|
|
|
|
<formatter type="plain" usefile="false"/>
|
|
|
|
<test name="${test.entry}"/>
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${dest.classes}" />
|
|
|
|
<pathelement path="${classpath}" />
|
|
|
|
<pathelement path="${java.class.path}" />
|
|
|
|
</classpath>
|
|
|
|
</junit>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
|
|
|
|
<arg value="${test.entry}"/>
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${dest.classes}" />
|
|
|
|
<pathelement path="${classpath}" />
|
|
|
|
<pathelement path="${java.class.path}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
2003-01-06 08:00:54 -05:00
|
|
|
<target name="dist" depends="test,dist-jar,doc,dist-tar,dist-zip" description="builds binary distribution"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
|
2003-10-05 19:12:15 -04:00
|
|
|
<target name="dist-jar" depends="dist-jar-main,dist-jar-testframework"/>
|
2003-10-02 19:46:54 -04:00
|
|
|
|
|
|
|
<target name="dist-jar-main" depends="build">
|
2001-08-17 19:00:26 -04:00
|
|
|
<mkdir dir="${dest.jardir}"/>
|
2003-10-02 19:46:54 -04:00
|
|
|
|
2001-08-17 19:00:26 -04:00
|
|
|
<mkdir dir="${workdir}"/>
|
|
|
|
<copy todir="${workdir}">
|
|
|
|
<fileset dir="${dest.classes}">
|
|
|
|
<patternset refid="patternset-non-test-classes"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2002-03-28 00:23:37 -05:00
|
|
|
<mkdir dir="${workdir}/META-INF"/>
|
2002-07-25 14:08:05 -04:00
|
|
|
<copy todir="${workdir}/META-INF" file="./LICENSE.txt"/>
|
2002-03-28 00:23:37 -05:00
|
|
|
|
2001-08-17 19:00:26 -04:00
|
|
|
<jar jarfile="${dest.jardir.jar}" manifest="${source.src}/conf/MANIFEST.MF">
|
|
|
|
<fileset dir="${workdir}"/>
|
|
|
|
</jar>
|
2003-09-16 01:32:54 -04:00
|
|
|
|
|
|
|
<jar jarfile="${dest.jardir.object-jar}" manifest="${source.src}/conf/MANIFEST.MF">
|
|
|
|
<fileset dir="${workdir}">
|
|
|
|
<exclude name="org/apache/commons/collections/primitives/**"/>
|
|
|
|
</fileset>
|
|
|
|
</jar>
|
|
|
|
|
|
|
|
<jar jarfile="${dest.jardir.primitive-jar}" manifest="${source.src}/conf/MANIFEST.MF">
|
|
|
|
<fileset dir="${workdir}">
|
|
|
|
<include name="META-INF/**"/>
|
|
|
|
<include name="org/apache/commons/collections/primitives/**"/>
|
|
|
|
</fileset>
|
|
|
|
</jar>
|
2003-10-02 19:46:54 -04:00
|
|
|
|
2001-08-17 19:00:26 -04:00
|
|
|
<delete dir="${workdir}"/>
|
2003-10-02 19:46:54 -04:00
|
|
|
</target>
|
|
|
|
|
2003-10-05 19:12:15 -04:00
|
|
|
<target name="dist-jar-testframework" depends="validate-build-testframework, build-test">
|
2003-10-02 19:46:54 -04:00
|
|
|
<mkdir dir="${dest.jardir}"/>
|
|
|
|
|
|
|
|
<mkdir dir="${workdir}"/>
|
|
|
|
<copy todir="${workdir}">
|
|
|
|
<fileset dir="${dest.classes}">
|
|
|
|
<patternset refid="patternset-testframework-classes"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<mkdir dir="${workdir}/META-INF"/>
|
|
|
|
<copy todir="${workdir}/META-INF" file="./LICENSE.txt"/>
|
2002-03-28 00:13:54 -05:00
|
|
|
|
2003-10-02 19:46:54 -04:00
|
|
|
<jar jarfile="${dest.jardir.testframework.jar}" manifest="${source.src}/conf/MANIFEST.MF">
|
|
|
|
<fileset dir="${workdir}"/>
|
|
|
|
</jar>
|
|
|
|
|
|
|
|
<delete dir="${workdir}"/>
|
2001-08-17 19:00:26 -04:00
|
|
|
</target>
|
2002-03-28 00:13:54 -05:00
|
|
|
|
|
|
|
<target name="dist-tar" depends="dist-jar,doc">
|
|
|
|
<mkdir dir="${workdir}/${bin.name}"/>
|
|
|
|
<copy todir="${workdir}/${bin.name}">
|
|
|
|
<fileset dir="${dest}">
|
2002-03-28 01:50:15 -05:00
|
|
|
<patternset refid="patternset-exclude-distros"/>
|
2002-03-28 00:13:54 -05:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<!-- create tar.gz -->
|
|
|
|
<tar longfile="gnu" tarfile="${dest.bin.tar}">
|
|
|
|
<tarfileset dir="${workdir}"/>
|
|
|
|
</tar>
|
|
|
|
|
|
|
|
<gzip zipfile="${dest.bin.tar.gz}"
|
|
|
|
src="${dest.bin.tar}">
|
|
|
|
</gzip>
|
|
|
|
<delete file="${dest.bin.tar}" />
|
|
|
|
|
|
|
|
<delete dir="${workdir}"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="dist-zip" depends="dist-jar,doc">
|
|
|
|
<mkdir dir="${workdir}/${bin.name}"/>
|
|
|
|
<copy todir="${workdir}/${bin.name}">
|
|
|
|
<fileset dir="${dest}">
|
2002-03-28 01:50:15 -05:00
|
|
|
<patternset refid="patternset-exclude-distros"/>
|
2002-03-28 00:13:54 -05:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<!-- create a zip file -->
|
|
|
|
<zip zipfile="${dest.bin.zip}" >
|
|
|
|
<zipfileset dir="${workdir}" />
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
<delete dir="${workdir}"/>
|
|
|
|
|
2002-03-28 01:50:15 -05:00
|
|
|
</target>
|
2001-08-17 19:00:26 -04:00
|
|
|
|
|
|
|
<!-- ######################################################### -->
|
|
|
|
|
2002-03-28 01:50:15 -05:00
|
|
|
<target name="dist-src" depends="init">
|
|
|
|
|
|
|
|
<!-- not executed in default dist, because it is configuration-rich
|
|
|
|
and requires an active network connection -->
|
|
|
|
|
|
|
|
<mkdir dir="${workdir}"/>
|
|
|
|
<mkdir dir="${dest.jardir}"/>
|
|
|
|
|
|
|
|
<cvs dest="${workdir}" cvsRoot="${cvs.root}"
|
|
|
|
package="jakarta-commons" tag="${cvs.tag}"/>
|
2002-03-28 10:45:03 -05:00
|
|
|
<move toDir="${workdir}/${src.name}">
|
|
|
|
<fileset dir="${workdir}/jakarta-commons/collections"/>
|
|
|
|
</move>
|
|
|
|
<delete dir="${workdir}/jakarta-commons"/>
|
2002-07-25 14:08:05 -04:00
|
|
|
<copy file="./LICENSE.txt" toDir="${workdir}/${src.name}"/>
|
2002-03-28 01:50:15 -05:00
|
|
|
|
|
|
|
<!-- create tar.gz -->
|
|
|
|
<tar longfile="gnu" tarfile="${dest.src.tar}">
|
|
|
|
<tarfileset dir="${workdir}"/>
|
|
|
|
</tar>
|
|
|
|
|
|
|
|
<gzip zipfile="${dest.src.tar.gz}"
|
|
|
|
src="${dest.src.tar}">
|
|
|
|
</gzip>
|
|
|
|
<delete file="${dest.src.tar}" />
|
|
|
|
|
|
|
|
<!-- create a zip file -->
|
|
|
|
<zip zipfile="${dest.src.zip}" >
|
|
|
|
<zipfileset dir="${workdir}" />
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
<delete dir="${workdir}"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2001-08-17 19:00:26 -04:00
|
|
|
</project>
|