(no commit message)
[utils] / build / delegator.xml
1
2
3     <!--  =============================================================
4       This build file provides delegation to a number of other
5       projects. The projects must be defined in a projects 
6       property which contains a comma-separated list of directories
7       to which we must delegate. 
8       This build file should be included from another build file 
9       which needs to delegate to other targets. 
10       ================================================================= -->
11     
12         <!--  ================================================================
13       Delegates the build to a number of other projects. 
14       Two properties must be set for this to work: 
15       - projects: a comma separated list of directories to execute the
16         build in. 
17       - targets: List of targets (separated by commas) to execute.
18       ================================================================ -->
19     <target name="delegator" >
20             <for list="${targets}" param="target">
21                 <sequential> 
22                     <for list="${projects}" param="proj">
23                         <sequential>
24                             <echo>
25 =====================================================================
26 Executing target '@{target}' for @{proj}
27 =====================================================================
28                             </echo>
29                             <ant dir="@{proj}" 
30                              inheritAll="false" 
31                              target="@{target}"/>
32                     </sequential>
33                 </for>
34             </sequential>
35         </for>
36         </target>
37
38         
39         
40         <target name="info">
41             <echo>Delegator build file for delegating a task
42                   to several other build files. </echo>
43         </target>
44         
45         <target name="init_delegator" depends="init_directory_properties,import_header">
46         </target>
47         
48         
49         <target name="deps" depends="init_delegator" description="download dependencies">
50                 <antcall target="delegator">
51                         <param name="targets" value="deps"/>
52                 </antcall>
53         </target>
54         
55         <target name="clean-deps" depends="init_delegator" description="download dependencies">
56                 <antcall target="delegator">
57                         <param name="targets" value="clean-deps"/>
58                 </antcall>
59         </target>
60         
61         <target name="clean" depends="init_delegator" description="Clean all targets">
62                 <antcall target="delegator">
63                         <param name="targets" value="clean"/>
64                 </antcall>
65         </target>
66         
67         <target name="compile" depends="init_delegator">
68                 <antcall target="delegator">
69                         <param name="targets" value="compile,dist-lite-product"/>
70                 </antcall>
71         </target>
72
73     <target name="schemaexport" depends="init_delegator">
74                 <antcall target="delegator">
75                         <param name="targets" value="schemaexport"/>
76                 </antcall>
77         </target>
78         
79         <target name="jar" depends="init_delegator">
80                 <antcall target="delegator">
81                         <param name="targets" value="jar"/>
82                 </antcall>
83         </target>
84         
85         <target name="javadoc" depends="init_delegator">
86                 <antcall target="delegator">
87                         <param name="targets" value="javadoc"/>
88                 </antcall>
89         </target>
90         
91         <target name="testjavadoc" depends="init_delegator">
92                 <antcall target="delegator">
93                         <param name="targets" value="testjavadoc"/>
94                 </antcall>
95         </target>
96         
97         <target name="pdfdoc" depends="init_delegator">
98                 <antcall target="delegator">
99                         <param name="targets" value="pdfdoc"/>
100                 </antcall>
101         </target>
102         
103         <target name="doccheck" depends="init_delegator">
104                 <antcall target="delegator">
105                         <param name="targets" value="doccheck"/>
106                 </antcall>
107         </target>
108         
109         <target name="clean-dist" depends="init_delegator">
110                 <antcall target="delegator">
111                         <param name="targets" value="clean-dist"/>
112                 </antcall>
113         </target>
114         
115         <target name="dist-lite" depends="init_delegator">
116                 <antcall target="delegator">
117                         <param name="targets" value="dist-lite"/>
118                 </antcall>
119         </target>
120         
121         <target name="dist-javadoc" depends="init_delegator">
122                 <antcall target="delegator">
123                         <param name="targets" value="dist-javadoc"/>
124                 </antcall>
125         </target>
126                 
127         <target name="dist-lite-product" depends="init_delegator">
128                 <antcall target="delegator">
129                         <param name="targets" value="dist-lite-product"/>
130                 </antcall>
131         </target>
132         
133         <target name="dist-lite-test" depends="init_delegator">
134                 <antcall target="delegator">
135                         <param name="targets" value="dist-lite-test"/>
136                 </antcall>
137         </target>
138         
139         
140         <target name="dist" depends="init_delegator">
141                 <antcall target="delegator">
142                         <param name="targets" value="dist"/>
143                 </antcall>
144         </target>
145
146         <target name="checkstyle" depends="init_delegator">
147                 <antcall target="delegator">
148                         <param name="targets" value="checkstyle"/>
149                 </antcall>
150         </target>
151         
152         <target name="format" depends="init_delegator">
153                 <antcall target="delegator">
154                         <param name="targets" value="format"/>
155                 </antcall>
156         </target>
157         
158         <target name="simian" depends="init_delegator">
159                 <antcall target="delegator">
160                         <param name="targets" value="simian"/>
161                 </antcall>
162         </target>
163         
164         <target name="macker" depends="init_delegator">
165                 <antcall target="delegator">
166                         <param name="targets" value="macker"/>
167                 </antcall>
168         </target>
169
170     <target name="testclasses" depends="init_delegator">
171                 <antcall target="delegator">
172                         <param name="targets" value="dist-lite-product,dist-lite-test"/>
173                 </antcall>
174         </target>
175         
176         <target name="test" depends="init_delegator">
177                 <antcall target="delegator">
178                         <param name="targets" value="dist-lite-product,dist-lite-test,test"/>
179                 </antcall>
180         </target>
181         
182         <target name="junit-reports" depends="init_delegator">
183                 <antcall target="delegator">
184                         <param name="targets" value="junit-reports,dist-lite-product,dist-lite-test"/>
185                 </antcall>
186         </target>
187         
188         <target name="jcov-reports" depends="init_delegator">
189                 <antcall target="delegator">
190                         <param name="targets" value="jcov-reports,dist-lite-product,dist-lite-test"/>
191                 </antcall>
192         </target>
193         
194         <target name="reports" depends="init_delegator">
195                 <antcall target="delegator">
196                         <param name="targets" value="reports,dist-lite-product,dist-lite-test"/>
197                 </antcall>
198         </target>
199         
200         <target name="forrest" depends="init_delegator">
201                 <antcall target="delegator">
202                         <param name="targets" value="forrest"/>
203                 </antcall>
204         </target>
205         
206         
207         <target name="schemaupdate" depends="init_delegator">
208                 <antcall target="delegator">
209                         <param name="targets" value="schemaupdate"/>
210                 </antcall>
211         </target>
212         
213