Update build script for 3.2
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@400315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cfc1b177ef
commit
a9db1350ad
46
build.xml
46
build.xml
|
@ -1,5 +1,5 @@
|
||||||
<!--
|
<!--
|
||||||
Copyright 2001-2004 The Apache Software Foundation
|
Copyright 2001-2006 The Apache Software Foundation
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -52,9 +52,11 @@
|
||||||
<property name="build.classes" value="${build.home}/classes"/>
|
<property name="build.classes" value="${build.home}/classes"/>
|
||||||
<property name="build.tests" value="${build.home}/tests"/>
|
<property name="build.tests" value="${build.home}/tests"/>
|
||||||
<property name="build.docs" value="${build.home}/docs/apidocs"/>
|
<property name="build.docs" value="${build.home}/docs/apidocs"/>
|
||||||
|
<property name="build.src" value="${build.home}/src-ide" />
|
||||||
|
|
||||||
<!-- The name/location of the jar file to build -->
|
<!-- The name/location of the jar file to build -->
|
||||||
<property name="jar.name" value="${component.name}-${component.version}.jar"/>
|
<property name="final.name" value="${component.name}-${component.version}"/>
|
||||||
|
<property name="jar.name" value="${final.name}.jar"/>
|
||||||
<property name="build.jar.name" value="${build.home}/${jar.name}"/>
|
<property name="build.jar.name" value="${build.home}/${jar.name}"/>
|
||||||
|
|
||||||
<!-- The name/location of the zip files to build -->
|
<!-- The name/location of the zip files to build -->
|
||||||
|
@ -86,6 +88,9 @@
|
||||||
<!-- JUnit -->
|
<!-- JUnit -->
|
||||||
<property name="test.failonerror" value="true"/>
|
<property name="test.failonerror" value="true"/>
|
||||||
|
|
||||||
|
<!-- Maven -->
|
||||||
|
<property name="maven.repo" value="${user.home}/.maven/repository" />
|
||||||
|
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
<!-- ========== Executable Targets ======================================== -->
|
<!-- ========== Executable Targets ======================================== -->
|
||||||
|
@ -462,7 +467,7 @@
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
<!-- Target needed for nightly builds -->
|
<!-- Target needed for nightly builds -->
|
||||||
<target name="dist" depends="dist.create"
|
<target name="dist" depends="javadoc,dist.create"
|
||||||
description="Create distribution folders">
|
description="Create distribution folders">
|
||||||
<delete dir="${dist.home}"/>
|
<delete dir="${dist.home}"/>
|
||||||
<mkdir dir="${dist.home}" />
|
<mkdir dir="${dist.home}" />
|
||||||
|
@ -471,10 +476,21 @@
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="dist.create" depends="jar,testjar,javadoc,tf.validate,tf.jar,dist.bin,dist.src">
|
<target name="dist.create" depends="jar,testjar,tf.validate,tf.jar,dist.bin,dist.src">
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="dist.bin">
|
<target name="dist.bin">
|
||||||
|
<copy todir="${build.src}">
|
||||||
|
<fileset dir="${basedir}/src/java" includes="**/*.java" />
|
||||||
|
</copy>
|
||||||
|
<copy todir="${build.src}/META-INF">
|
||||||
|
<fileset dir="${basedir}" includes="LICENSE*, NOTICE*" />
|
||||||
|
</copy>
|
||||||
|
<jar jarfile="${build.home}/${final.name}-src-ide.zip" basedir="${build.src}" />
|
||||||
|
<antcall target="internal-md5">
|
||||||
|
<param name="path" value="${build.home}/${final.name}.jar"/>
|
||||||
|
</antcall>
|
||||||
|
|
||||||
<mkdir dir="${build.dist.bin.work}"/>
|
<mkdir dir="${build.dist.bin.work}"/>
|
||||||
<copy todir="${build.dist.bin.work}">
|
<copy todir="${build.dist.bin.work}">
|
||||||
<fileset dir=".">
|
<fileset dir=".">
|
||||||
|
@ -511,7 +527,7 @@
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="${build.dist.src.work}">
|
<copy todir="${build.dist.src.work}">
|
||||||
<fileset dir="${build.home}">
|
<fileset dir="${build.home}">
|
||||||
<include name="*.jar"/>
|
<include name="${final.name}.jar"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="${build.dist.src.work}">
|
<copy todir="${build.dist.src.work}">
|
||||||
|
@ -527,6 +543,11 @@
|
||||||
|
|
||||||
<target name="release" depends="dist.create,zip"
|
<target name="release" depends="dist.create,zip"
|
||||||
description="Create release">
|
description="Create release">
|
||||||
|
<!-- POM -->
|
||||||
|
<copy file="project.xml" tofile="${build.home}/${final.name}.pom" />
|
||||||
|
<antcall target="internal-md5">
|
||||||
|
<param name="path" value="${build.home}/${final.name}.pom"/>
|
||||||
|
</antcall>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="zip" depends="zip.bin,zip.src">
|
<target name="zip" depends="zip.bin,zip.src">
|
||||||
|
@ -581,20 +602,15 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
<target name="clirr">
|
<target name="clirr">
|
||||||
<property name="jar.baseline" value="commons-collections-3.1.jar" />
|
|
||||||
<property name="jar.current" value="commons-collections-3.2.jar" />
|
|
||||||
|
|
||||||
<taskdef resource="clirrtask.properties">
|
<taskdef resource="clirrtask.properties">
|
||||||
<classpath path="/clirr/clirr-0.3.jar;/clirr/bcel-5.1.jar;" />
|
<classpath path="${maven.repo}/clirr/jars/clirr-core-0.6-uber.jar;" />
|
||||||
</taskdef>
|
</taskdef>
|
||||||
|
|
||||||
<clirr>
|
<clirr>
|
||||||
<origfiles dir="." includes="${jar.baseline}"/>
|
<origfiles dir="${maven.repo}/commons-collections/jars" includes="commons-collections-3.1.jar"/>
|
||||||
<newfiles dir="." includes="${jar.current}" />
|
<newfiles dir="${build.home}" includes="${final.name}.jar" />
|
||||||
<formatter type="plain" outfile="clirr.txt" />
|
<formatter type="plain" outfile="${build.home}/clirr.txt" />
|
||||||
</clirr>
|
</clirr>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue