blob: a04ef7488afab512178a811cb2c27310199b0cdb [file] [log] [blame]
Richard S. Hall85bafab2009-07-13 13:25:46 +00001<?xml version="1.0">
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
20<project name="all" default="publish" xmlns:ivy="antlib:org.apache.ivy.ant">
21 <property name="common.dir" value="${basedir}/common" />
22 <import file="${common.dir}/common.xml"/>
23
24 <fileset id="projects" dir="projects" includes="**/build.xml"/>
25
26 <path id="unordered-list">
27 <fileset refid="projects"/>
28 </path>
29
30 <target name="buildlist" depends="load-ivy">
31 <ivy:buildlist reference="ordered-list">
32 <fileset refid="projects"/>
33 </ivy:buildlist>
34 </target>
35
36 <target name="publish" depends="buildlist"
37 description="compile, jar and publish all projects in the right order">
38 <subant target="publish" buildpathref="ordered-list">
39 <propertyset>
40 <propertyref name="ivy.loaded" />
41 </propertyset>
42 </subant>
43 </target>
44
45 <target name="clean" description="clean all projects">
46 <subant target="clean" buildpathref="unordered-list" />
47 </target>
48
49 <target name="fullclean" depends="clean, load-ivy"
50 description="clean tutorial: delete repository, ivy cache, and all projects">
51 <delete dir="repository"/>
52 <ivy:cleancache />
53 </target>
54
55 <target name="order" depends="buildlist"
56 description="test buildlist order">
57 <subant target="hello" buildpathref="ordered-list" />
58 </target>
59
60</project>