2006-11-08 14:24:55 -05:00
|
|
|
<?xml version="1.0"?>
|
2006-11-11 10:03:13 -05:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
|
|
|
|
-->
|
2006-06-26 14:14:53 -04:00
|
|
|
|
2006-12-14 14:25:43 -05:00
|
|
|
<project name="gdata-server" default="default">
|
2006-11-08 14:24:55 -05:00
|
|
|
<description>
|
2006-07-25 18:23:01 -04:00
|
|
|
Serverside Google Data API implementation
|
2006-11-08 14:24:55 -05:00
|
|
|
</description>
|
|
|
|
<import file="gdata-build/get-dependencies.xml" />
|
|
|
|
<property name="javac.source" value="1.5" />
|
|
|
|
<property name="javac.target" value="1.5" />
|
2006-12-13 14:04:23 -05:00
|
|
|
|
2006-11-08 14:24:55 -05:00
|
|
|
<property name="gdata.lib.dir" value="lib" />
|
|
|
|
<property name="gdata.external.lib.dir" value="./ext-libs" />
|
2006-12-13 14:04:23 -05:00
|
|
|
<property name="db4o.jar" value="db4o-5.5-java5.jar" />
|
|
|
|
<!-- properties for war task -->
|
|
|
|
<property name="ioc.descriptors.dir" value="./src/hivemind/descriptor" />
|
|
|
|
<property name="ioc.descriptors.excludes" value="" />
|
|
|
|
<property name="ioc.descriptors.includes" value="**/*.xml" />
|
|
|
|
|
|
|
|
<property name="gdata.war.name" value="gdata-server" />
|
|
|
|
|
|
|
|
<property name="jar.name.core" value="lucene-core-${version}" />
|
|
|
|
<property name="jar.name.gom" value="lucene-gom-${version}" />
|
|
|
|
<property name="jar.name.hivemind" value="lucene-hivemind-${version}" />
|
|
|
|
|
|
|
|
<fileset id="hivemind.jars" dir="${gdata.external.lib.dir}">
|
|
|
|
<include name="hivemind-1.1.jar" />
|
|
|
|
<include name="hivemind-jmx-1.1.jar" />
|
|
|
|
<include name="hivemind-lib-1.1.jar" />
|
|
|
|
<include name="javassist-3.0.jar" />
|
|
|
|
<include name="oro-2.0.6.jar" />
|
|
|
|
<include name="hessian-3.0.20.jar" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<fileset id="gom.jars" dir="${gdata.external.lib.dir}">
|
|
|
|
<include name="stax-1.1.2-dev.jar" />
|
|
|
|
<include name="stax-api-1.0.1.jar" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
|
2006-11-08 14:24:55 -05:00
|
|
|
<!-- set property for third party jars -->
|
2006-12-13 14:04:23 -05:00
|
|
|
<available property="db4o.jar.present" type="file" file="${gdata.external.lib.dir}/${db4o.jar}" value="test" />
|
2006-11-08 14:24:55 -05:00
|
|
|
<condition property="junit.excludes" value="**/db4o/**/*.java">
|
|
|
|
<not>
|
|
|
|
<isset property="db4o.jar.present" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
2006-12-13 14:04:23 -05:00
|
|
|
|
2006-12-13 07:32:08 -05:00
|
|
|
<condition property="do.download">
|
|
|
|
<not>
|
|
|
|
<and>
|
|
|
|
<available file="${gdata.external.lib.dir}/stax-api-1.0.1.jar" />
|
|
|
|
<available file="${gdata.external.lib.dir}/stax-1.1.2-dev.jar" />
|
|
|
|
<available file="${gdata.external.lib.dir}/hivemind-1.1.jar" />
|
|
|
|
<available file="${gdata.external.lib.dir}/hivemind-lib-1.1.jar" />
|
|
|
|
<available file="${gdata.external.lib.dir}/hivemind-jmx-1.1.jar" />
|
|
|
|
<available file="${gdata.external.lib.dir}/hessian-3.0.20.jar" />
|
|
|
|
<available file="${gdata.external.lib.dir}/easymock-1.2_Java1.5.jar" />
|
|
|
|
<available file="${gdata.external.lib.dir}/oro-2.0.6.jar" />
|
|
|
|
</and>
|
|
|
|
</not>
|
|
|
|
</condition>
|
2006-12-13 14:04:23 -05:00
|
|
|
<target name="jar-core" description="Packages the JAR file">
|
|
|
|
<ant dir="src/core" target="jar-core" inheritRefs="true" />
|
|
|
|
<ant dir="src/hivemind" target="jar-core" inheritRefs="true" />
|
|
|
|
<ant dir="src/gom" target="jar-core" inheritRefs="true" />
|
|
|
|
</target>
|
2006-07-25 18:23:01 -04:00
|
|
|
|
2006-11-08 14:24:55 -05:00
|
|
|
|
2006-12-13 14:04:23 -05:00
|
|
|
<target name="test">
|
|
|
|
<ant dir="src/core" target="test" inheritRefs="true" />
|
|
|
|
<ant dir="src/gom" target="test" inheritRefs="true" />
|
|
|
|
<ant dir="src/hivemind" target="test" inheritRefs="true" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile-core" depends="download">
|
|
|
|
<ant dir="src/core" target="compile-core" inheritRefs="true" />
|
|
|
|
<ant dir="src/hivemind" target="compile-core" inheritRefs="true" />
|
|
|
|
<ant dir="src/gom" target="compile-core" inheritRefs="true" />
|
2006-11-08 14:24:55 -05:00
|
|
|
</target>
|
|
|
|
|
2006-12-13 07:32:08 -05:00
|
|
|
<target name="compile-test" depends="compile-core, download">
|
2006-12-13 14:04:23 -05:00
|
|
|
<ant dir="src/core" target="compile-test" inheritRefs="true" />
|
|
|
|
<ant dir="src/hivemind" target="compile-test" inheritRefs="true" />
|
|
|
|
<ant dir="src/gom" target="compile-test" inheritRefs="true" />
|
2006-11-08 14:24:55 -05:00
|
|
|
</target>
|
|
|
|
|
2006-12-13 14:04:23 -05:00
|
|
|
<target name="clean">
|
|
|
|
<ant dir="src/core" target="clean" inheritRefs="true" />
|
|
|
|
<ant dir="src/hivemind" target="clean" inheritRefs="true" />
|
|
|
|
<ant dir="src/gom" target="clean" inheritRefs="true" />
|
2006-11-08 14:24:55 -05:00
|
|
|
</target>
|
|
|
|
|
2006-12-13 14:04:23 -05:00
|
|
|
<target name="war-gdata" depends="clean,jar-core">
|
|
|
|
<ant dir="src/core" target="war-gdata" inheritRefs="true" />
|
2006-11-08 14:24:55 -05:00
|
|
|
</target>
|
2006-12-14 14:25:43 -05:00
|
|
|
|
|
|
|
<target name="default" description="default" depends="download">
|
|
|
|
<ant dir="src/core" target="default" inheritRefs="true" />
|
|
|
|
<ant dir="src/hivemind" target="default" inheritRefs="true" />
|
|
|
|
<ant dir="src/gom" target="default" inheritRefs="true" />
|
|
|
|
</target>
|
2006-11-08 14:24:55 -05:00
|
|
|
|
2006-12-13 14:04:23 -05:00
|
|
|
|
2006-11-08 14:24:55 -05:00
|
|
|
</project>
|