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=".">
|
2012-02-13 09:12:59 -05:00
|
|
|
<dirname file="${ant.file.modules}" property="modules.dir"/>
|
|
|
|
<import file="${modules.dir}/../lucene/tools/custom-tasks.xml" />
|
|
|
|
|
|
|
|
<macrodef name="forall-modules">
|
|
|
|
<attribute name="target" />
|
2010-05-05 10:26:59 -04:00
|
|
|
<sequential>
|
2012-02-13 09:12:59 -05:00
|
|
|
<subant target="@{target}" inheritall="false" failonerror="true">
|
2012-03-30 14:04:43 -04:00
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
2012-02-13 09:12:59 -05:00
|
|
|
<fileset dir="${modules.dir}" includes="*/build.xml" />
|
2010-05-05 10:26:59 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
2012-02-13 09:12:59 -05:00
|
|
|
</macrodef>
|
|
|
|
|
2012-03-30 14:04:43 -04:00
|
|
|
<propertyset id="uptodate.and.compiled.properties" dynamic="true">
|
|
|
|
<propertyref regex=".*\.uptodate$$"/>
|
|
|
|
<propertyref regex=".*\.compiled$$"/>
|
|
|
|
</propertyset>
|
|
|
|
|
|
|
|
|
2012-02-13 09:12:59 -05:00
|
|
|
<target name="test" description="Test all modules">
|
|
|
|
<forall-modules target="test" />
|
2010-05-05 10:26:59 -04:00
|
|
|
</target>
|
2010-05-03 08:44:22 -04:00
|
|
|
|
2011-05-30 20:08:14 -04:00
|
|
|
<target name="compile" description="Compile all modules" depends="validate">
|
2012-02-13 09:12:59 -05:00
|
|
|
<forall-modules target="compile" />
|
2010-05-05 10:26:59 -04:00
|
|
|
</target>
|
|
|
|
|
2012-03-30 14:04:43 -04:00
|
|
|
<target name="resolve">
|
|
|
|
<forall-modules target="resolve"/>
|
|
|
|
</target>
|
|
|
|
|
2010-10-07 11:13:43 -04:00
|
|
|
<target name="compile-test" description="Compile all tests">
|
2012-02-13 09:12:59 -05:00
|
|
|
<forall-modules target="compile-test" />
|
2010-10-07 11:13:43 -04:00
|
|
|
</target>
|
|
|
|
|
2010-10-07 11:23:54 -04:00
|
|
|
<target name="javadocs" description="Generate javadocs">
|
2012-02-13 09:12:59 -05:00
|
|
|
<forall-modules target="javadocs" />
|
2010-10-07 11:23:54 -04:00
|
|
|
</target>
|
|
|
|
|
2010-08-19 15:58:36 -04:00
|
|
|
<target name="generate-maven-artifacts" description="Generate Maven Artifacts for Modules">
|
2012-02-13 09:12:59 -05:00
|
|
|
<ant target="get-maven-poms" dir=".."/>
|
|
|
|
<forall-modules target="dist-maven" />
|
2010-08-19 15:58:36 -04:00
|
|
|
</target>
|
2012-02-13 09:12:59 -05:00
|
|
|
|
2012-03-30 14:04:43 -04:00
|
|
|
<target name="validate" depends="resolve" description="Validate legal stuff.">
|
2012-02-13 09:12:59 -05:00
|
|
|
<!-- The order here is important because forall compiles tools. -->
|
|
|
|
<forall-modules target="validate" />
|
|
|
|
<license-check-macro dir="${basedir}" />
|
2011-03-18 14:40:02 -04:00
|
|
|
</target>
|
2010-08-19 15:58:36 -04:00
|
|
|
|
2010-05-05 10:26:59 -04:00
|
|
|
<target name="clean" description="Clean all modules">
|
2012-02-13 09:12:59 -05:00
|
|
|
<delete dir="dist"/>
|
|
|
|
<forall-modules target="clean" />
|
2010-05-05 10:26:59 -04:00
|
|
|
</target>
|
2012-03-30 14:04:43 -04:00
|
|
|
|
|
|
|
<!-- TODO: in the future, we don't need to actually put
|
|
|
|
jars in the lib/ folders, but can just put in classpath.
|
|
|
|
only packaging tasks really need that (and could do it
|
|
|
|
under build/ directories) -->
|
|
|
|
<target name="clean-jars" description="Clean local jars">
|
|
|
|
<delete>
|
|
|
|
<fileset dir="." includes="**/*.jar"/>
|
|
|
|
</delete>
|
|
|
|
</target>
|
2010-05-03 08:44:22 -04:00
|
|
|
</project>
|