1<!--
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
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
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.
16-->
17<project name="Collections Test Framework jar" default="jar" basedir=".">
18
19
20<!--
21        $Id: build-testframework.xml 646782 2008-04-10 12:58:57Z niallp $
22-->
23
24
25<!-- ========== Component Declarations ==================================== -->
26
27
28  <!-- The current version number of this component -->
29  <property name="component.version"       value=""/>
30
31  <!-- The base directory for compiled test classes -->
32  <property name="test.classes"            value="target/test-classes"/>
33
34  <!-- The base directory for distribution targets -->
35  <property name="dist.home"               value="target"/>
36
37  <!-- JDK versions -->
38  <property name="maven.compile.source"    value=""/>
39  <property name="maven.compile.target"    value=""/>
40
41
42<!-- ========== Executable Targets ======================================== -->
43
44  <target name="jar" description="Create Collections Test Framework jar">
45    <mkdir      dir="${dist.home}"/>
46    <mkdir      dir="${test.classes}/META-INF"/>
47    <copy      file="LICENSE.txt" tofile="${test.classes}/META-INF/LICENSE.txt"/>
48    <copy      file="NOTICE.txt"  tofile="${test.classes}/META-INF/NOTICE.txt"/>
49    <jar    jarfile="${dist.home}/commons-collections-testframework-${component.version}.jar">
50        <manifest>
51            <attribute name="Specification-Title" value="Commons Collections Test Framework"/>
52            <attribute name="Specification-Version" value="${component.version}"/>
53            <attribute name="Specification-Vendor" value="The Apache Software Foundation"/>
54            <attribute name="Implementation-Title" value="Commons Collections Test Framework"/>
55            <attribute name="Implementation-Version" value="${component.version}"/>
56            <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
57            <attribute name="Implementation-Vendor-Id" value="org.apache"/>
58            <attribute name="X-Compile-Source-JDK" value="${maven.compile.source}"/>
59            <attribute name="X-Compile-Target-JDK" value="${maven.compile.target}"/>
60        </manifest>
61        <fileset dir="${test.classes}">
62            <include name="**/LICENSE.txt"/>
63            <include name="**/NOTICE.txt"/>
64            <include name="**/AbstractTest*.class"/>
65            <include name="**/BulkTest*.class"/>
66        </fileset>
67    </jar>
68  </target>
69
70</project>
71