(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         <target name="clean" depends="init_delegator" description="Clean all targets">
49                 <antcall target="delegator">
50                         <param name="targets" value="clean"/>
51                 </antcall>
52         </target>
53         
54         <target name="compile" depends="init_delegator">
55                 <antcall target="delegator">
56                         <param name="targets" value="compile,dist-lite-product"/>
57                 </antcall>
58         </target>
59
60     <target name="schemaexport" depends="init_delegator">
61                 <antcall target="delegator">
62                         <param name="targets" value="schemaexport"/>
63                 </antcall>
64         </target>
65         
66         <target name="jar" depends="init_delegator">
67                 <antcall target="delegator">
68                         <param name="targets" value="jar"/>
69                 </antcall>
70         </target>
71         
72         <target name="javadoc" depends="init_delegator">
73                 <antcall target="delegator">
74                         <param name="targets" value="javadoc"/>
75                 </antcall>
76         </target>
77         
78         <target name="testjavadoc" depends="init_delegator">
79                 <antcall target="delegator">
80                         <param name="targets" value="testjavadoc"/>
81                 </antcall>
82         </target>
83         
84         <target name="pdfdoc" depends="init_delegator">
85                 <antcall target="delegator">
86                         <param name="targets" value="pdfdoc"/>
87                 </antcall>
88         </target>
89         
90         <target name="doccheck" depends="init_delegator">
91                 <antcall target="delegator">
92                         <param name="targets" value="doccheck"/>
93                 </antcall>
94         </target>
95         
96         <target name="clean-dist" depends="init_delegator">
97                 <antcall target="delegator">
98                         <param name="targets" value="clean-dist"/>
99                 </antcall>
100         </target>
101         
102         <target name="dist-lite" depends="init_delegator">
103                 <antcall target="delegator">
104                         <param name="targets" value="dist-lite"/>
105                 </antcall>
106         </target>
107         
108         <target name="dist-javadoc" depends="init_delegator">
109                 <antcall target="delegator">
110                         <param name="targets" value="dist-javadoc"/>
111                 </antcall>
112         </target>
113                 
114         <target name="dist-lite-product" depends="init_delegator">
115                 <antcall target="delegator">
116                         <param name="targets" value="dist-lite-product"/>
117                 </antcall>
118         </target>
119         
120         <target name="dist-lite-test" depends="init_delegator">
121                 <antcall target="delegator">
122                         <param name="targets" value="dist-lite-test"/>
123                 </antcall>
124         </target>
125         
126         
127         <target name="dist" depends="init_delegator">
128                 <antcall target="delegator">
129                         <param name="targets" value="dist"/>
130                 </antcall>
131         </target>
132
133         <target name="checkstyle" depends="init_delegator">
134                 <antcall target="delegator">
135                         <param name="targets" value="checkstyle"/>
136                 </antcall>
137         </target>
138         
139         <target name="format" depends="init_delegator">
140                 <antcall target="delegator">
141                         <param name="targets" value="format"/>
142                 </antcall>
143         </target>
144         
145         <target name="simian" depends="init_delegator">
146                 <antcall target="delegator">
147                         <param name="targets" value="simian"/>
148                 </antcall>
149         </target>
150         
151         <target name="macker" depends="init_delegator">
152                 <antcall target="delegator">
153                         <param name="targets" value="macker"/>
154                 </antcall>
155         </target>
156
157     <target name="testclasses" depends="init_delegator">
158                 <antcall target="delegator">
159                         <param name="targets" value="dist-lite-product,dist-lite-test"/>
160                 </antcall>
161         </target>
162         
163         <target name="test" depends="init_delegator">
164                 <antcall target="delegator">
165                         <param name="targets" value="dist-lite-product,dist-lite-test,test"/>
166                 </antcall>
167         </target>
168         
169         <target name="junit-reports" depends="init_delegator">
170                 <antcall target="delegator">
171                         <param name="targets" value="junit-reports,dist-lite-product,dist-lite-test"/>
172                 </antcall>
173         </target>
174         
175         <target name="jcov-reports" depends="init_delegator">
176                 <antcall target="delegator">
177                         <param name="targets" value="jcov-reports,dist-lite-product,dist-lite-test"/>
178                 </antcall>
179         </target>
180         
181         <target name="reports" depends="init_delegator">
182                 <antcall target="delegator">
183                         <param name="targets" value="reports,dist-lite-product,dist-lite-test"/>
184                 </antcall>
185         </target>
186         
187         <target name="schemaupdate" depends="init_delegator">
188                 <antcall target="delegator">
189                         <param name="targets" value="schemaupdate"/>
190                 </antcall>
191         </target>
192         
193