2010-05-03 08:44:22 -04:00
|
|
|
<?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.
|
|
|
|
-->
|
|
|
|
|
2010-05-05 10:26:59 -04:00
|
|
|
<project name="modules" default="test" basedir=".">
|
2011-03-17 11:34:21 -04:00
|
|
|
<import file="../common-build.xml"/>
|
2010-05-05 10:26:59 -04:00
|
|
|
<target name="test" description="Test all modules">
|
|
|
|
<sequential>
|
|
|
|
<subant target="test" inheritall="false" failonerror="true">
|
|
|
|
<fileset dir="analysis" includes="build.xml" />
|
2011-01-04 07:28:10 -05:00
|
|
|
<fileset dir="benchmark" includes="build.xml" />
|
2010-05-05 10:26:59 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
2010-05-03 08:44:22 -04:00
|
|
|
|
2011-03-17 11:34:21 -04:00
|
|
|
<target name="compile" description="Compile all modules" depends="validate-modules">
|
2010-05-05 10:26:59 -04:00
|
|
|
<sequential>
|
|
|
|
<subant target="compile" inheritall="false" failonerror="true">
|
|
|
|
<fileset dir="analysis" includes="build.xml" />
|
2011-01-04 07:28:10 -05:00
|
|
|
<fileset dir="benchmark" includes="build.xml" />
|
2010-05-05 10:26:59 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2010-10-07 11:13:43 -04:00
|
|
|
<target name="compile-test" description="Compile all tests">
|
|
|
|
<sequential>
|
|
|
|
<subant target="compile-test" inheritall="false" failonerror="true">
|
|
|
|
<fileset dir="analysis" includes="build.xml" />
|
2011-01-04 07:28:10 -05:00
|
|
|
<fileset dir="benchmark" includes="build.xml" />
|
2010-10-07 11:13:43 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2010-10-07 11:23:54 -04:00
|
|
|
<target name="javadocs" description="Generate javadocs">
|
|
|
|
<sequential>
|
|
|
|
<subant target="javadocs" inheritall="false" failonerror="true">
|
|
|
|
<fileset dir="analysis" includes="build.xml" />
|
2011-01-04 07:28:10 -05:00
|
|
|
<fileset dir="benchmark" includes="build.xml" />
|
2010-10-07 11:23:54 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2010-08-19 15:58:36 -04:00
|
|
|
<target name="generate-maven-artifacts" description="Generate Maven Artifacts for Modules">
|
|
|
|
<sequential>
|
2011-01-24 14:33:14 -05:00
|
|
|
<ant target="get-maven-poms" dir=".."/>
|
2010-08-19 15:58:36 -04:00
|
|
|
<subant target="dist-maven" inheritall="false" failonerror="true">
|
|
|
|
<fileset dir="analysis" includes="build.xml" />
|
2011-01-04 07:28:10 -05:00
|
|
|
<fileset dir="benchmark" includes="build.xml" />
|
2010-08-19 15:58:36 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
2011-03-18 14:40:02 -04:00
|
|
|
<target name="validate" depends="validate-modules"/>
|
|
|
|
<target name="validate-modules" depends="check-legal-modules" unless="validated-modules"/>
|
2011-03-22 14:03:57 -04:00
|
|
|
<target name="check-legal-modules" depends="compile-tools">
|
2011-03-18 14:40:02 -04:00
|
|
|
<java classname="org.apache.lucene.validation.DependencyChecker" failonerror="true" fork="true">
|
|
|
|
<classpath>
|
2011-03-22 14:03:57 -04:00
|
|
|
<path refid="tools.runtime.classpath" />
|
2011-03-18 14:40:02 -04:00
|
|
|
</classpath>
|
|
|
|
<!-- TODO: it might be better to just automatically find all directories that contain jar files, but that could take a
|
|
|
|
long time. This should be faster, but we could miss a directory
|
|
|
|
-->
|
|
|
|
<!-- Modules -->
|
|
|
|
<arg value="-c" />
|
|
|
|
<arg value="${basedir}/analysis/icu/lib" />
|
|
|
|
<arg value="-c" />
|
|
|
|
<arg value="${basedir}/analysis/phonetic/lib" />
|
|
|
|
<arg value="-c" />
|
|
|
|
<arg value="${basedir}/benchmark/lib" />
|
|
|
|
</java>
|
|
|
|
</target>
|
2010-08-19 15:58:36 -04:00
|
|
|
|
2010-05-05 10:26:59 -04:00
|
|
|
<target name="clean" description="Clean all modules">
|
|
|
|
<sequential>
|
2011-01-22 20:42:19 -05:00
|
|
|
<delete dir="dist"/>
|
2010-05-05 10:26:59 -04:00
|
|
|
<subant target="clean" inheritall="false" failonerror="true">
|
|
|
|
<fileset dir="analysis" includes="build.xml" />
|
2011-01-04 07:28:10 -05:00
|
|
|
<fileset dir="benchmark" includes="build.xml" />
|
2010-05-05 10:26:59 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
2010-05-03 08:44:22 -04:00
|
|
|
|
|
|
|
</project>
|