| <?xml version="1.0"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <project name="test-framework" default="default"> |
| <description>Lucene Test Framework</description> |
| |
| <property name="build.dir" location="../build/test-framework"/> |
| |
| <import file="../common-build.xml"/> |
| |
| <path id="classpath"> |
| <pathelement location="${common.dir}/build/core/classes/java"/> |
| <path refid="junit-path"/> |
| <path refid="ant-path"/> |
| </path> |
| |
| <!-- |
| Specialize compile-core to depend on lucene-core compilation, |
| and *not* to depend on clover; clover already includes the |
| test-framework sources in each module's test instrumentation. |
| --> |
| <target name="compile-core" depends="init,compile-lucene-core" |
| description="Compiles test-framework classes"> |
| <compile srcdir="${src.dir}" destdir="${build.dir}/classes/java"> |
| <classpath refid="classpath"/> |
| </compile> |
| <copy todir="${build.dir}/classes/java"> |
| <fileset dir="${src.dir}/../resources" erroronmissingdir="no"/> |
| </copy> |
| </target> |
| |
| <target name="javadocs-core" depends="javadocs"/> |
| <target name="javadocs"> |
| <sequential> |
| <mkdir dir="${javadoc.dir}/test-framework"/> |
| <invoke-javadoc overview="${src.dir}/overview.html" |
| destdir="${javadoc.dir}/test-framework" |
| title="${Name} ${version} Test Framework API"> |
| <sources> |
| <packageset dir="${src.dir}"/> |
| <link offline="true" href="${javadoc.link.junit}" |
| packagelistLoc="${javadoc.packagelist.dir}/junit"/> |
| <link href=""/> |
| </sources> |
| </invoke-javadoc> |
| <mkdir dir="${build.dir}"/> |
| <jarify basedir="${javadoc.dir}/test-framework" |
| destfile="${build.dir}/${final.name}-javadoc.jar" |
| title="Lucene Search Engine: Test Framework" /> |
| </sequential> |
| </target> |
| </project> |