<?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
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="solr-test-framework" default="default">
<description>Solr Test Framework</description>
<import file="/common-build.xml"/>
<path id="javadoc.classpath">
<path refid="classpath"/>
<pathelement location="${common.dir}/build/test-framework/classes/java"/>
</path>
<!-- Redefine Lucene test-framework compilation here to avoid circular dependency on compile-core -->
<target name="compile-test-framework">
<propertyset refid="uptodate.and.compiled.properties"/>
</ant>
</target>
<target name="compile-core" depends="compile-solr-core, compile-test-framework">
<classpath refid="test.base.classpath"/>
</compile>
</target>
<!-- Override common-solr.javadocs to include a JUnit javadoc link -->
<!-- and to copy the built javadocs to ${dest}/docs/api/test-framework -->
<target name="javadocs"
depends="compile-core,define-lucene-javadoc-url">
<sequential>
<mkdir dir="${javadoc.dir}"/>
<mkdir dir="${dest}/META-INF/"/>
title="${Name} ${version} ${name} API">
<sources>
packagelistloc="${common.dir}/build/docs/api/all/"/>
packagelistLoc="${javadoc.packagelist.dir}/junit"/>
<link href=""/>
<packageset dir="${src.dir}"/>
</sources>
</invoke-javadoc>
<mkdir dir="${dest}/docs/api/test-framework"/>
<copy todir="${dest}/docs/api/test-framework">
<fileset dir="${javadoc.dir}"/>
</copy>
</sequential>
</target>
</project>