1
<?xml version="1.0" encoding="UTF-8"?>
4
Licensed to the Apache Software Foundation (ASF) under one or more
5
contributor license agreements. See the NOTICE file distributed with
6
this work for additional information regarding copyright ownership.
7
The ASF licenses this file to You under the Apache License, Version 2.0
8
(the "License"); you may not use this file except in compliance with
9
the License. You may obtain a copy of the License at
11
http://www.apache.org/licenses/LICENSE-2.0
13
Unless required by applicable law or agreed to in writing, software
14
distributed under the License is distributed on an "AS IS" BASIS,
15
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
See the License for the specific language governing permissions and
17
limitations under the License.
21
Based on maven generated file on date October 1 2005
22
Added overview to javadoc
23
Include license in jar
24
Changed dist target and structure
27
<project default="jar" name="commons-io" basedir=".">
28
<!--Load local and user build preferences-->
30
<property file="build.properties">
32
<property file="${user.home}/build.properties">
34
<!--Build properties-->
36
<property name="defaulttargetdir" value="${basedir}/build">
38
<property name="libdir" value="${user.home}/.maven/repository">
40
<property name="classesdir" value="${basedir}/build/classes" />
41
<property name="srcdir" value="${basedir}/build/src" />
42
<property name="testclassesdir" value="${basedir}/build/test-classes">
44
<property name="testreportdir" value="${basedir}/build/test-reports">
46
<property name="final.name" value="commons-io-1.3.2" />
47
<property name="dist.build.dir" value="${basedir}/build/dist-build" />
48
<property name="dist.bin" value="${dist.build.dir}/${final.name}" />
49
<property name="dist.src" value="${dist.build.dir}/${final.name}-src" />
50
<property name="javadocdir" value="${dist.bin}/docs" />
51
<property name="dist.zip.dir" value="${basedir}/build/dist" />
52
<property name="dist.bin.tar.name" value="${basedir}/build/dist/${final.name}.tar" />
53
<property name="dist.bin.gz.name" value="${basedir}/build/dist/${final.name}.tar.gz" />
54
<property name="dist.bin.zip.name" value="${basedir}/build/dist/${final.name}.zip" />
55
<property name="dist.src.tar.name" value="${basedir}/build/dist/${final.name}-src.tar" />
56
<property name="dist.src.gz.name" value="${basedir}/build/dist/${final.name}-src.tar.gz" />
57
<property name="dist.src.zip.name" value="${basedir}/build/dist/${final.name}-src.zip" />
58
<property name="proxy.host" value="">
60
<property name="proxy.port" value="">
62
<property name="proxy.username" value="">
64
<property name="proxy.password" value="">
66
<path id="build.classpath">
68
<target name="init" description="o Initializes some properties">
69
<mkdir dir="${libdir}">
71
<condition property="noget">
72
<equals arg2="only" arg1="${build.sysclasspath}">
75
<!--Test if JUNIT is present in ANT classpath-->
77
<available property="Junit.present" classname="junit.framework.Test">
79
<!--Test if user defined a proxy-->
81
<condition property="useProxy">
83
<isset property="proxy.host">
86
<equals trim="true" arg2="" arg1="${proxy.host}">
92
<target name="compile" description="o Compile the code" depends="get-deps">
93
<mkdir dir="${classesdir}">
95
<javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
97
<pathelement location="${basedir}/src/java">
100
<classpath refid="build.classpath">
103
<mkdir dir="${classesdir}/META-INF" />
104
<copy todir="${classesdir}/META-INF">
105
<fileset dir="${basedir}/.">
106
<include name="LICENSE.txt" />
107
<include name="NOTICE.txt" />
112
<target name="jar" description="o Create the jar" depends="compile,test">
113
<jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/*.html" basedir="${classesdir}" manifest="${basedir}/src/conf/MANIFEST.MF" />
115
<target name="dist-jar" depends="compile">
116
<jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/*.html" basedir="${classesdir}" manifest="${basedir}/src/conf/MANIFEST.MF" />
117
<copy todir="${srcdir}">
118
<fileset dir="${basedir}/src/java" includes="**/*.java" />
120
<copy todir="${srcdir}/META-INF">
121
<fileset dir="${basedir}" includes="LICENSE*, NOTICE*" />
123
<jar jarfile="${defaulttargetdir}/${final.name}-sources.jar" basedir="${srcdir}" manifest="${basedir}/src/conf/MANIFEST.MF"/>
124
<antcall target="internal-md5">
125
<param name="path" value="${defaulttargetdir}/${final.name}.jar"/>
129
<target name="clean" description="o Clean up the generated directories">
130
<delete dir="${defaulttargetdir}">
132
<delete dir="${dist.bin}">
136
<target name="dist" description="o Create a distribution" depends="dist-jar, dist-existing-jar">
138
<target name="dist-existing-jar" depends="javadoc">
139
<!-- this is used in a release where the jar is built on JDK1.3 -->
140
<!-- but the javadoc is built on JDK1.4 -->
141
<mkdir dir="${dist.bin}" />
142
<mkdir dir="${dist.zip.dir}" />
144
<copy todir="${javadocdir}/META-INF">
145
<fileset dir="${basedir}" includes="LICENSE*, NOTICE*" />
147
<jar jarfile="${defaulttargetdir}/${final.name}-javadoc.jar" basedir="${javadocdir}" manifest="${basedir}/src/conf/MANIFEST.MF"/>
149
<copy todir="${dist.bin}">
150
<fileset dir="${defaulttargetdir}" includes="*.jar,*.zip" />
151
<fileset dir="${basedir}" includes="LICENSE*, NOTICE*, README*, RELEASE-NOTES*" />
153
<!-- Unix tar gz binary -->
154
<fixcrlf srcdir="${dist.bin}" eol="lf" includes="*.txt" />
155
<tar longfile="gnu" tarfile="${dist.bin.tar.name}">
156
<tarfileset dir="${dist.build.dir}"/>
158
<gzip zipfile="${dist.bin.gz.name}" src="${dist.bin.tar.name}"/>
159
<antcall target="internal-md5">
160
<param name="path" value="${dist.bin.gz.name}"/>
162
<delete file="${dist.bin.tar.name}" />
163
<!-- Windows zip binary -->
164
<fixcrlf srcdir="${dist.bin}" eol="crlf" includes="*.txt" />
165
<zip zipfile="${dist.bin.zip.name}" >
166
<zipfileset dir="${dist.build.dir}"/>
168
<antcall target="internal-md5">
169
<param name="path" value="${dist.bin.zip.name}"/>
172
<delete dir="${dist.bin}" />
173
<copy todir="${dist.src}">
174
<fileset dir="${defaulttargetdir}" includes="*.jar" />
175
<fileset dir="${basedir}" includes="LICENSE*, NOTICE*, README*, RELEASE-NOTES*, build.xml, checkstyle.xml, maven.xml, project.properties, project.xml" />
176
<fileset dir="${basedir}" includes="xdocs/**, src/**" />
178
<!-- Unix tar gz source -->
179
<fixcrlf srcdir="${dist.src}" eol="lf" includes="*.txt,*.xml,*.css,*.properties" />
180
<tar longfile="gnu" tarfile="${dist.src.tar.name}">
181
<tarfileset dir="${dist.build.dir}"/>
183
<gzip zipfile="${dist.src.gz.name}" src="${dist.src.tar.name}"/>
184
<antcall target="internal-md5">
185
<param name="path" value="${dist.src.gz.name}"/>
187
<delete file="${dist.src.tar.name}" />
188
<!-- Windows zip source -->
189
<fixcrlf srcdir="${dist.src}" eol="crlf" includes="*.txt,*.xml,*.css,*.properties" />
190
<zip zipfile="${dist.src.zip.name}" >
191
<zipfileset dir="${dist.build.dir}"/>
193
<antcall target="internal-md5">
194
<param name="path" value="${dist.src.zip.name}"/>
197
<copy file="project.xml" tofile="${defaulttargetdir}/${final.name}.pom" />
198
<antcall target="internal-md5">
199
<param name="path" value="${defaulttargetdir}/${final.name}.pom"/>
202
<delete dir="${dist.build.dir}" />
204
<target name="internal-md5">
205
<basename property="_base" file="${path}"/>
206
<checksum file="${path}" property="md5"/>
207
<echo message="${md5} *${_base}" file="${path}.md5"/>
210
<target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
211
<fail message="There were test failures." />
213
<target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
214
<mkdir dir="${testreportdir}">
216
<junit dir="${basedir}" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
217
<sysproperty key="basedir" value="." />
218
<formatter type="plain" />
219
<formatter usefile="false" type="plain" />
221
<path refid="build.classpath" />
222
<pathelement path="${testclassesdir}" />
223
<pathelement path="${classesdir}" />
225
<batchtest todir="${testreportdir}">
226
<fileset dir="${basedir}/src/test">
227
<include name="**/*Test*" />
228
<exclude name="**/*AbstractTestCase*" />
229
<exclude name="**/AllIOTestSuite*" />
230
<exclude name="**/PackageTestSuite*" />
231
<exclude name="**/testtools/**" />
236
<target name="testjar" description="o Run the test cases against the jar" if="test.failure" depends="internal-testjar">
237
<fail message="There were test failures." />
239
<target name="internal-testjar" if="Junit.present" depends="junit-present,compile-tests">
240
<mkdir dir="${testreportdir}">
242
<junit dir="${basedir}" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
243
<sysproperty key="basedir" value="." />
244
<formatter type="plain" />
245
<formatter usefile="false" type="plain" />
247
<path refid="build.classpath" />
248
<pathelement path="${testclassesdir}" />
249
<pathelement location="${defaulttargetdir}/${final.name}.jar"/>
251
<batchtest todir="${testreportdir}">
252
<fileset dir="${basedir}/src/test">
253
<include name="**/*Test*" />
254
<exclude name="**/*AbstractTestCase*" />
255
<exclude name="**/AllIOTestSuite*" />
256
<exclude name="**/PackageTestSuite*" />
257
<exclude name="**/testtools/**" />
262
<target name="junit-present" unless="Junit.present" depends="init">
263
<echo>================================= WARNING ================================</echo>
264
<echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
265
<echo>==========================================================================</echo>
267
<target name="compile-tests" if="Junit.present" depends="junit-present,compile">
268
<mkdir dir="${testclassesdir}">
270
<javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
272
<pathelement location="${basedir}/src/test">
276
<path refid="build.classpath">
278
<pathelement path="${classesdir}">
283
<target name="javadoc" description="o Generate javadoc" depends="get-deps">
284
<mkdir dir="${javadocdir}">
2
Licensed to the Apache Software Foundation (ASF) under one or more
3
contributor license agreements. See the NOTICE file distributed with
4
this work for additional information regarding copyright ownership.
5
The ASF licenses this file to You under the Apache License, Version 2.0
6
(the "License"); you may not use this file except in compliance with
7
the License. You may obtain a copy of the License at
9
http://www.apache.org/licenses/LICENSE-2.0
11
Unless required by applicable law or agreed to in writing, software
12
distributed under the License is distributed on an "AS IS" BASIS,
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
See the License for the specific language governing permissions and
15
limitations under the License.
17
<project name="Commons IO" default="jar" basedir=".">
21
"IO" component of the Apache Commons Subproject
22
$Id: build.xml 612689 2008-01-17 03:04:28Z niallp $
23
$Revision: 612689 $ $Date: 2008-01-17 03:04:28 +0000 (Thu, 17 Jan 2008) $
27
<!-- ========== Initialize Properties ===================================== -->
30
<property file="project.properties"/> <!-- Project local -->
31
<property file="build.properties"/> <!-- Component local -->
32
<property file="${user.home}/build.properties"/> <!-- User local -->
35
<!-- ========== External Dependencies ===================================== -->
38
<!-- The directories corresponding to your necessary dependencies -->
39
<property name="junit.home" value="/usr/local/junit3.8.1"/>
40
<property name="junit.jar" value="${junit.home}/junit.jar"/>
43
<!-- ========== Component Declarations ==================================== -->
46
<!-- The name of this component -->
47
<property name="component.name" value="commons-io"/>
49
<!-- The primary package name of this component -->
50
<property name="component.package" value="org.apache.commons.io"/>
52
<!-- The title of this component -->
53
<property name="component.title" value="Commons IO"/>
55
<!-- The current version number of this component -->
56
<property name="component.version" value="1.4"/>
58
<!-- The base directory for component sources -->
59
<property name="source.home" value="src/java"/>
61
<!-- The base directory for unit test sources -->
62
<property name="test.home" value="src/test"/>
64
<!-- Download lib dir -->
65
<property name="download.lib.dir" value="lib"/>
67
<!-- The base directory for compilation targets -->
68
<property name="build.home" value="target"/>
70
<!-- The base directory for distribution targets -->
71
<property name="dist.home" value="${build.home}/dist"/>
73
<!-- Base file name for dist files -->
74
<property name="final.name" value="${component.name}-${component.version}"/>
76
<!-- Directory where binary release files are staged -->
77
<property name="stage.bin.dir" value="${dist.home}/stage-bin"/>
79
<!-- Directory where source release files are staged -->
80
<property name="stage.src.dir" value="${dist.home}/stage-src"/>
82
<!-- ========== Compiler Defaults ========================================= -->
84
<!-- Should Java compilations set the 'debug' compiler option? -->
85
<property name="compile.debug" value="true"/>
87
<!-- Should Java compilations set the 'deprecation' compiler option? -->
88
<property name="compile.deprecation" value="false"/>
90
<!-- Should Java compilations set the 'optimize' compiler option? -->
91
<property name="compile.optimize" value="true"/>
93
<!-- Construct compile classpath -->
94
<path id="compile.classpath">
95
<pathelement location="${build.home}/classes"/>
98
<!-- Construct compile classpath -->
99
<path id="downloaded.lib.classpath">
100
<pathelement location="${download.lib.dir}/junit.jar"/>
103
<!-- ========== Test Execution Defaults =================================== -->
106
<!-- Construct unit test classpath -->
107
<path id="test.classpath">
108
<pathelement location="${build.home}/classes"/>
109
<pathelement location="${build.home}/test-classes"/>
110
<pathelement location="${junit.jar}"/>
111
<path refid="downloaded.lib.classpath"/>
114
<!-- Should all tests fail if one does? -->
115
<property name="test.failonerror" value="true"/>
117
<!-- The test runner to execute -->
118
<property name="test.runner" value="junit.textui.TestRunner"/>
121
<!-- ========== Executable Targets ======================================== -->
123
<target name="clean" description="Clean build and distribution directories">
124
<delete dir="${build.home}"/>
130
description="Initialize and evaluate conditionals">
131
<echo message="-------- ${component.title} ${component.version} --------"/>
132
<filter token="name" value="${component.name}"/>
133
<filter token="package" value="${component.package}"/>
134
<filter token="version" value="${component.version}"/>
135
<filter token="compilesource" value="${compile.source}"/>
136
<filter token="compiletarget" value="${compile.target}"/>
138
<mkdir dir="${build.home}"/>
139
<mkdir dir="${build.home}/classes"/>
140
<mkdir dir="${build.home}/test-classes"/>
143
<!-- ========== Compile Targets =========================================== -->
145
<target name="compile" depends="init" description="Compile dependant on JDK version">
146
<condition property="is.jdk13">
147
<equals arg1="${ant.java.version}" arg2="1.3" />
149
<condition property="not.jdk13">
150
<not><equals arg1="${ant.java.version}" arg2="1.3" /></not>
152
<antcall target="compile.jdk13" />
153
<antcall target="compile.all" />
156
<!-- Compile all classes -->
157
<target name="compile.all" unless="is.jdk13"
158
description="Compile ALL classes">
159
<echo message="*** Compiling all classes ***" />
161
<!-- check JDK 1.4 -->
162
<fail message="switch to JDK 1.4+">
164
<equals arg1="${ant.java.version}" arg2="1.3" />
168
<javac srcdir="${source.home}"
169
destdir="${build.home}/classes"
170
source="${maven.compile.source}"
171
target="${maven.compile.target}"
172
debug="${compile.debug}"
173
deprecation="${compile.deprecation}"
174
optimize="${compile.optimize}">
175
<classpath refid="compile.classpath"/>
179
<!-- Compile excluding JDK 1.4 classes -->
180
<target name="compile.jdk13" unless="not.jdk13"
181
description="Compile ONLY JDK 1.3 compatible classes ">
182
<echo message="*** Compiling ONLY JDK 1.3 compatible classes ***" />
184
<!-- check JDK 1.3 -->
185
<fail message="switch to JDK 1.3">
187
<not><equals arg1="${ant.java.version}" arg2="1.3" /></not>
190
<javac srcdir="${source.home}"
191
destdir="${build.home}/classes"
192
debug="${compile.debug}"
193
deprecation="${compile.deprecation}"
194
optimize="${compile.optimize}">
195
<classpath refid="compile.classpath"/>
196
<include name="**/*.java"/>
197
<exclude name="**/CharSequenceReader.java"/>
198
<exclude name="**/IOExceptionWithCause.java"/>
199
<exclude name="**/RegexFileFilter.java"/>
200
<exclude name="**/FileWriterWithEncoding.java"/>
205
<!-- ========== Unit Test Targets ========================================= -->
207
<target name="compile.tests" depends="compile, download-dependencies" description="Compile unit test cases dependant on JDK version">
208
<antcall target="compile.tests.jdk13" />
209
<antcall target="compile.tests.all" />
212
<!-- Compile all classes -->
213
<target name="compile.tests.all" unless="is.jdk13"
214
description="Compile ALL test classes">
215
<echo message="*** Compiling all test classes ***" />
217
<!-- check JDK 1.4 -->
218
<fail message="switch to JDK 1.4+">
220
<equals arg1="${ant.java.version}" arg2="1.3" />
224
<javac srcdir="${test.home}"
225
destdir="${build.home}/test-classes"
226
debug="${compile.debug}"
227
deprecation="${compile.deprecation}"
228
optimize="${compile.optimize}">
229
<classpath refid="test.classpath"/>
233
<!-- Compile excluding JDK 1.4 classes -->
234
<target name="compile.tests.jdk13" unless="not.jdk13"
235
description="Compile ONLY JDK 1.3 compatible test classes ">
236
<echo message="*** Compiling ONLY JDK 1.3 compatible test classes ***" />
238
<fail message="switch to JDK 1.3">
240
<not><equals arg1="${ant.java.version}" arg2="1.3" /></not>
243
<javac srcdir="${test.home}"
244
destdir="${build.home}/test-classes"
245
debug="${compile.debug}"
246
deprecation="${compile.deprecation}"
247
optimize="${compile.optimize}">
248
<classpath refid="test.classpath"/>
249
<include name="**/*.java"/>
250
<exclude name="**/RegexFileFilterTestCase.java"/>
251
<exclude name="**/FileWriterWithEncodingTest.java"/>
252
<exclude name="**/IOExceptionWithCauseTestCase.java"/>
253
<exclude name="**/CharSequenceReaderTest.java"/>
257
<target name="test" depends="compile.tests"
258
description="Run all unit test cases">
259
<antcall target="run.tests.jdk13" />
260
<antcall target="run.tests.jdk14" />
263
<target name="run.tests.jdk13"
264
description="Run ONLY JDK 1.3 compatible test classes ">
266
<echo message="**** Running JDK 1.3 compatible test classes ****"/>
268
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.PackageTestSuite"/></antcall>
269
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.comparator.PackageTestSuite"/></antcall>
270
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.filefilter.PackageTestSuite"/></antcall>
271
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.input.PackageTestSuite"/></antcall>
272
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.output.PackageTestSuite"/></antcall>
276
<target name="run.tests.jdk14" unless="is.jdk13"
277
description="Run ONLY tests requiring JDK 1.4">
279
<echo message="**** Running tests requiring JDK 1.4 ****"/>
281
<!-- check JDK 1.4 -->
282
<fail message="switch to JDK 1.4+">
284
<equals arg1="${ant.java.version}" arg2="1.3" />
288
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.IOExceptionWithCauseTestCase"/></antcall>
289
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.filefilter.RegexFileFilterTestCase"/></antcall>
290
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.input.CharSequenceReaderTest"/></antcall>
291
<antcall target="exec.test"><param name="testclass" value="org.apache.commons.io.output.FileWriterWithEncodingTest"/></antcall>
295
<target name="exec.test" description="Run a unit test case">
296
<echo message="Running Test ${testclass} ..."/>
297
<java classname="${test.runner}" fork="yes"
298
failonerror="${test.failonerror}">
299
<arg value="${testclass}"/>
300
<classpath refid="test.classpath"/>
305
<!-- ========== Produce JavaDocs ========================================== -->
307
<target name="javadoc" depends="compile" description="Create component Javadoc documentation">
308
<mkdir dir="${build.home}/apidocs"/>
287
<format pattern="2002-yyyy" property="year">
310
<format property="current.year" pattern="yyyy"/>
290
<property name="copyright" value="Copyright &copy; The Apache Software Foundation. All Rights Reserved.">
292
<property name="title" value="IO 1.3.2">
294
<javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="${basedir}/src/java" packagenames="org.apache.commons.io.*" overview="src/java/org/apache/commons/io/overview.html">
296
<path refid="build.classpath">
299
<link href="http://java.sun.com/j2se/1.4/docs/api/" />
300
<link href="http://java.sun.com/webservices/docs/1.5/api/" />
303
<target name="get-deps" unless="noget">
305
<target name="setProxy" if="useProxy" depends="init">
306
<!--Proxy settings works only with a JDK 1.2 and higher.-->
308
<echo>Proxy used :</echo>
309
<echo>Proxy host [${proxy.host}]</echo>
310
<echo>Proxy port [${proxy.port}]</echo>
311
<echo>Proxy user [${proxy.username}]</echo>
312
<setproxy proxyuser="${proxy.username}" proxyport="${proxy.port}" proxypassword="${proxy.password}" proxyhost="${proxy.host}">
315
<target name="noProxy" unless="useProxy" depends="init">
316
<echo>Proxy not used.</echo>
318
<target name="install-maven">
319
<get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
321
<unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
325
<!-- ====================================================================== -->
326
<target name="clirr">
327
<taskdef resource="clirrtask.properties">
328
<classpath path="../clirr/clirr-core-0.6-uber.jar;" />
331
<origfiles dir="${libdir}/commons-io/jars" includes="commons-io-1.1.jar"/>
332
<newfiles dir="${defaulttargetdir}" includes="${final.name}.jar" />
333
<formatter type="plain" outfile="${defaulttargetdir}/clirr.txt" />
312
<javadoc sourcepath="${source.home}"
313
destdir="${build.home}/apidocs"
314
packagenames="org.apache.commons.*"
318
doctitle="<h1>${component.title} ${component.version}</h1>"
319
windowtitle="${component.title} ${component.version}"
320
bottom="Copyright (c) 2002-${current.year} Apache Software Foundation"
321
classpathref="compile.classpath" />
325
<!-- ========== Create Jar ================================================ -->
327
<target name="jar" depends="compile" description="Create jar file">
329
<mkdir dir="${build.home}/classes/META-INF"/>
330
<copy file="LICENSE.txt" tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
331
<copy file="NOTICE.txt" tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
333
<manifest file="${build.home}/MANIFEST.MF">
334
<attribute name="Specification-Title" value="${component.title}"/>
335
<attribute name="Specification-Version" value="${component.version}"/>
336
<attribute name="Specification-Vendor" value="Apache Software Foundation"/>
337
<attribute name="Implementation-Title" value="${component.title}"/>
338
<attribute name="Implementation-Version" value="${component.version}"/>
339
<attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
340
<attribute name="Implementation-Vendor-Id" value="org.apache"/>
341
<attribute name="X-Compile-Source-JDK" value="${maven.compile.source}"/>
342
<attribute name="X-Compile-Target-JDK" value="${maven.compile.target}"/>
345
<jar jarfile="${build.home}/${final.name}.jar"
346
basedir="${build.home}/classes"
347
manifest="${build.home}/MANIFEST.MF"/>
351
<!-- ========== Distribution Target =========================================== -->
353
<target name="dist" depends="clean,jar,javadoc" description="Create distribution artifacts">
355
<mkdir dir="${dist.home}"/>
358
<copy todir="${dist.home}">
360
<include name="RELEASE-NOTES.txt"/>
362
<fileset dir="${build.home}">
363
<include name="*.jar"/>
367
<!-- Binary Distro -->
368
<mkdir dir="${stage.bin.dir}/${final.name}"/>
369
<copy todir="${stage.bin.dir}/${final.name}">
371
<include name="LICENSE.txt"/>
372
<include name="NOTICE.txt"/>
373
<include name="RELEASE-NOTES.txt"/>
375
<fileset dir="${build.home}">
376
<include name="*.jar"/>
379
<copy todir="${stage.bin.dir}/${final.name}/apidocs">
380
<fileset dir="${build.home}/apidocs" />
383
<!-- Source Distro -->
384
<mkdir dir="${stage.src.dir}/${final.name}-src"/>
385
<copy todir="${stage.src.dir}/${final.name}-src">
387
<include name="build.xml"/>
388
<include name="build-check-jdk13.xml"/>
389
<include name="checkstyle.xml"/>
390
<include name="LICENSE.txt"/>
391
<include name="maven.xml"/>
392
<include name="NOTICE.txt"/>
393
<include name="pom.xml"/>
394
<include name="project.properties"/>
395
<include name="project.xml"/>
396
<include name="PROPOSAL.html"/>
397
<include name="RELEASE-NOTES.txt"/>
400
<copy todir="${stage.src.dir}/${final.name}-src/src">
401
<fileset dir="src" />
403
<copy todir="${stage.src.dir}/${final.name}-src/xdocs">
404
<fileset dir="xdocs" />
407
<zip zipfile="${dist.home}/${final.name}.zip" basedir="${stage.bin.dir}"/>
408
<zip zipfile="${dist.home}/${final.name}-src.zip" basedir="${stage.src.dir}"/>
409
<tar tarfile="${dist.home}/${final.name}.tar" basedir="${stage.bin.dir}" longfile="gnu"/>
410
<tar tarfile="${dist.home}/${final.name}-src.tar" basedir="${stage.src.dir}" longfile="gnu"/>
411
<gzip src="${dist.home}/${final.name}.tar" zipfile="${dist.home}/${final.name}.tar.gz"/>
412
<gzip src="${dist.home}/${final.name}-src.tar" zipfile="${dist.home}/${final.name}-src.tar.gz"/>
414
<!-- clean up staging directories -->
415
<delete dir="${stage.bin.dir}"/>
416
<delete dir="${stage.src.dir}"/>
421
<!-- ========== Gump Target ===================================================== -->
423
<target name="gump" depends="clean,test,javadoc,jar" description="Gump Target - clean,test,javadoc,jar"/>
426
<!-- ========== Download Dependencies =========================================== -->
428
<target name="download-dependencies"
429
depends="check-availability" unless="skip.download">
430
<echo message="doing download-dependencies..." />
431
<antcall target="download-junit" />
434
<target name="check-availability">
435
<echo message="doing check-availability..." />
436
<available file="${junit.jar}" property="junit.found"/>
439
<target name="download-junit" unless="junit.found">
440
<echo message="Downloading junit..."/>
441
<mkdir dir="${download.lib.dir}" />
442
<get dest="${download.lib.dir}/junit.jar"
443
usetimestamp="true" ignoreerrors="true"
444
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"/>