mirror of https://github.com/apache/lucene.git
117 lines
4.5 KiB
XML
117 lines
4.5 KiB
XML
<?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="gdata-server" default="default">
|
|
<description>
|
|
Serverside Google Data API implementation
|
|
</description>
|
|
<import file="gdata-build/get-dependencies.xml" />
|
|
<import file="gdata-build/ioc-container.xml" />
|
|
<property name="javac.source" value="1.5" />
|
|
<property name="javac.target" value="1.5" />
|
|
<property name="gdata.war.name" value="gdata-server" />
|
|
<property name="gdata.lib.dir" value="lib" />
|
|
<property name="gdata.external.lib.dir" value="./ext-libs" />
|
|
<property name="db4o.jar" value="db4o-5.2-java5.jar" />
|
|
<!-- set property for third party jars -->
|
|
<available property="db4o.jar.present" type="file" file="${gdata.lib.dir}/${db4o.jar}" value="test" />
|
|
<condition property="junit.excludes" value="**/db4o/**/*.java">
|
|
<not>
|
|
<isset property="db4o.jar.present" />
|
|
</not>
|
|
</condition>
|
|
<path id="additional.dependencies">
|
|
<fileset dir="${gdata.lib.dir}">
|
|
<include name="servlet-api.jar" />
|
|
<include name="commons-logging-1.1.jar" />
|
|
<include name="gdata-client-1.0.jar" />
|
|
<include name="commons-digester-1.7.jar" />
|
|
<include name="commons-beanutils.jar" />
|
|
<include name="commons-collections-3.2.jar" />
|
|
<include name="nekohtml.jar" />
|
|
<include name="xercesImpl.jar" />
|
|
<include name="${db4o.jar}" if="db4o.jar.present" />
|
|
</fileset>
|
|
</path>
|
|
|
|
|
|
<!-- redefine compile-core and compile-test to exclude 3rd party dependend sources -->
|
|
<target name="compile-core" depends="init, build-dependencies">
|
|
<echo>Use gdata - compile-core task </echo>
|
|
<compile srcdir="src/java" destdir="${build.dir}/classes/java">
|
|
<classpath>
|
|
<path refid="classpath"/>
|
|
<path refid="build.path"/>
|
|
</classpath>
|
|
<exclude name="org/apache/lucene/gdata/storage/db4o/**" unless="db4o.jar.present" />
|
|
</compile>
|
|
<antcall target="compile-IoC-container"/>
|
|
</target>
|
|
|
|
<target name="compile-test" depends="compile-core, test-dependencies">
|
|
<echo>Use gdata - compile-test task </echo>
|
|
<compile srcdir="src/test" destdir="${build.dir}/classes/test">
|
|
<classpath>
|
|
<path refid="test.build.path"/>
|
|
<path refid="test.classpath"/>
|
|
</classpath>
|
|
<exclude name="org/apache/lucene/gdata/storage/db4o/**" unless="db4o.jar.present" />
|
|
</compile>
|
|
<copy todir="${build.dir}/classes/test">
|
|
<fileset dir="src/test" excludes="**/*.java" />
|
|
</copy>
|
|
</target>
|
|
|
|
<pathconvert property="project.classpath" targetos="unix" refid="additional.dependencies" />
|
|
<import file="../contrib-build.xml" />
|
|
|
|
<target name="prepare-dist" depends="jar-core,jar-IoC-container">
|
|
<echo>Prepare dist directory</echo>
|
|
<delete dir="${dist.dir}" />
|
|
<mkdir dir="${dist.dir}" />
|
|
</target>
|
|
|
|
<target name="war-gdata" depends="prepare-dist,run-dependencies">
|
|
<echo>Distributing GData War </echo>
|
|
<war destfile="${dist.dir}/${gdata.war.name}.war" webxml="webroot/WEB-INF/web.xml">
|
|
<metainf dir="webroot/meta-inf" />
|
|
<fileset dir="webroot" defaultexcludes="true">
|
|
<exclude name="meta-inf/context.xml" />
|
|
<exclude name="meta-inf/" />
|
|
<exclude name="WEB-INF/web.xml" />
|
|
</fileset>
|
|
<fileset dir="${ioc.descriptors.dir}" excludes="${ioc.descriptors.excludes}" includes="${ioc.descriptors.includes}"/>
|
|
<lib dir="${gdata.lib.dir}">
|
|
<include name="commons-logging-1.1.jar" />
|
|
<include name="gdata-client-1.0.jar" />
|
|
<include name="commons-digester-1.7.jar" />
|
|
<include name="commons-beanutils.jar" />
|
|
<include name="commons-collections-3.2.jar" />
|
|
<include name="nekohtml.jar" />
|
|
<include name="xercesImpl.jar" />
|
|
<include name="${db4o.jar}" if="db4o.jar.present" />
|
|
</lib>
|
|
<lib refid="ioc-container-jars"/>
|
|
<lib dir="${build.dir}" includes="${final.name}.jar" />
|
|
<lib dir="${build.dir}" includes="${final.name}${ioc.container.jar.prefix}" />
|
|
<lib file="${lucene.jar}" />
|
|
</war>
|
|
</target>
|
|
|
|
</project> |