]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_4_2-src/main/shared/build/common-targets.xml
go
[Dictionary.git] / jars / icu4j-4_4_2-src / main / shared / build / common-targets.xml
1 <!--\r
2 *******************************************************************************\r
3 * Copyright (C) 2009, International Business Machines Corporation and         *\r
4 * others. All Rights Reserved.                                                *\r
5 *******************************************************************************\r
6 -->\r
7 <project name="common-targets" basedir=".">\r
8     <dirname property="common-targets.dir" file="${ant.file.common-targets}"/>\r
9     <property file="${common-targets.dir}/locations.properties"/>\r
10     <property file="${common-targets.dir}/common.properties"/>\r
11 \r
12     <!-- common targets -->\r
13 \r
14     <target name="@clean">\r
15         <delete dir="${out.dir}"/>\r
16     </target>\r
17 \r
18     <target name="@compile">\r
19         <echo message="--- java compiler arguments ------------------------"/>\r
20         <echo message="source dir:     ${basedir}/${src.dir}"/>\r
21         <echo message="output dir:     ${basedir}/${bin.dir}"/>\r
22         <echo message="classpath:      ${toString:javac.classpathref}"/>\r
23         <echo message="source:         ${javac.source}"/>\r
24         <echo message="target:         ${javac.target}"/>\r
25         <echo message="debug:          ${javac.debug}"/>\r
26         <echo message="encoding:       ${javac.encoding}"/>\r
27         <echo message="compiler arg:   ${javac.compilerarg}"/>\r
28         <echo message="----------------------------------------------------"/>\r
29 \r
30         <mkdir dir="${bin.dir}"/>\r
31         <javac\r
32             srcdir="${src.dir}"\r
33             destdir="${bin.dir}"\r
34             classpathref="javac.classpathref"\r
35             source="${javac.source}"\r
36             target="${javac.target}"\r
37             debug="${javac.debug}">\r
38             <compilerarg value="${javac.compilerarg}"/>\r
39         </javac>\r
40     </target>\r
41 \r
42     <target name="@copy">\r
43         <mkdir dir="${bin.dir}"/>\r
44         <copy todir="${bin.dir}">\r
45             <fileset dir="${src.dir}" defaultexcludes="yes">\r
46                 <exclude name="**/*.java"/>\r
47             </fileset>\r
48         </copy>\r
49     </target>\r
50 \r
51     <target name="@jar">\r
52         <mkdir dir="${jar.dir}"/>\r
53 \r
54         <copy file="manifest.stub" todir="${out.dir}">\r
55             <filterset>\r
56                 <filter token="SPECVERSION" value="${jar.spec.version}"/>\r
57                 <filter token="IMPLVERSION" value="${jar.impl.version}"/>\r
58                 <filter token="COPYRIGHT" value="${jar.copyright.info}"/>\r
59             </filterset>\r
60         </copy>\r
61 \r
62         <jar jarfile="${jar.file}" manifest="${out.dir}/manifest.stub" compress="true">\r
63             <fileset dir="${bin.dir}" includes="**/*"/>\r
64             <fileset dir="${shared.dir}/licenses">\r
65                 <include name="license.html"/>\r
66                 <include name="unicode-license.txt"/>\r
67             </fileset>\r
68         </jar>\r
69     </target>\r
70 \r
71     <target name="@build-all">\r
72         <antcall target="_all.${ant.project.name}"/>\r
73     </target>\r
74 \r
75     <!-- Dependencies -->\r
76 \r
77     <!-- collate -->\r
78     <path id="javac.classpathref.collate">\r
79         <pathelement location="${icu4j.core.jar}"/>\r
80     </path>\r
81 \r
82     <target name="_all.collate" depends="_all.core">\r
83         <ant dir="${icu4j.collate.dir}" inheritAll="false"/>\r
84     </target>\r
85 \r
86     <!-- core -->\r
87     <path id="javac.classpathref.core"/>\r
88 \r
89     <target name="_all.core">\r
90         <ant dir="${icu4j.core.dir}" inheritAll="false"/>\r
91     </target>\r
92 \r
93     <!-- charset -->\r
94     <path id="javac.classpathref.charset">\r
95         <pathelement location="${icu4j.core.jar}"/>\r
96     </path>\r
97 \r
98     <target name="_all.charset" depends="_all.core">\r
99         <ant dir="${icu4j.charset.dir}" inheritAll="false"/>\r
100     </target>\r
101 \r
102     <!-- currdata -->\r
103     <path id="javac.classpathref.currdata">\r
104         <pathelement location="${icu4j.core.jar}"/>\r
105     </path>\r
106 \r
107     <target name="_all.currdata" depends="_all.core">\r
108         <ant dir="${icu4j.currdata.dir}" inheritAll="false"/>\r
109     </target>\r
110 \r
111     <!-- langdata -->\r
112     <path id="javac.classpathref.langdata">\r
113         <pathelement location="${icu4j.core.jar}"/>\r
114     </path>\r
115 \r
116     <target name="_all.langdata" depends="_all.core">\r
117         <ant dir="${icu4j.langdata.dir}" inheritAll="false"/>\r
118     </target>\r
119 \r
120     <!-- localespi -->\r
121     <path id="javac.classpathref.localespi">\r
122         <pathelement location="${icu4j.core.jar}"/>\r
123         <pathelement location="${icu4j.collate.jar}"/>\r
124     </path>\r
125 \r
126     <target name="_all.localespi" depends="_all.core, _all.collate">\r
127         <ant dir="${icu4j.localespi.dir}" inheritAll="false"/>\r
128     </target>\r
129 \r
130     <!-- regiondata -->\r
131     <path id="javac.classpathref.regiondata">\r
132         <pathelement location="${icu4j.core.jar}"/>\r
133     </path>\r
134 \r
135     <target name="_all.regiondata" depends="_all.core">\r
136         <ant dir="${icu4j.regiondata.dir}" inheritAll="false"/>\r
137     </target>\r
138 \r
139     <!-- translit -->\r
140     <path id="javac.classpathref.translit">\r
141         <pathelement location="${icu4j.core.jar}"/>\r
142         <pathelement location="${icu4j.translit.jar}"/>\r
143     </path>\r
144 \r
145     <target name="_all.translit" depends="_all.core">\r
146         <ant dir="${icu4j.translit.dir}" inheritAll="false"/>\r
147     </target>\r
148 \r
149     <!-- test-framework -->\r
150     <path id="javac.classpathref.test-framework">\r
151         <pathelement location="${icu4j.core.jar}"/>\r
152     </path>\r
153 \r
154     <target name="_all.test-framework" depends="_all.core">\r
155         <ant dir="${icu4j.test-framework.dir}" inheritAll = "false"/>\r
156     </target>\r
157 \r
158     <!-- core-tests -->\r
159     <path id="javac.classpathref.core-tests">\r
160         <pathelement location="${icu4j.core.jar}"/>\r
161         <pathelement location="${icu4j.test-framework.jar}"/>\r
162     </path>\r
163 \r
164     <target name="_all.core-tests" depends="_all.core, _all.test-framework">\r
165         <ant dir="${icu4j.core-tests.dir}" inheritAll="false"/>\r
166     </target>\r
167 \r
168     <!-- collate-tests -->\r
169     <path id="javac.classpathref.collate-tests">\r
170         <pathelement location="${icu4j.core.jar}"/>\r
171         <pathelement location="${icu4j.collate.jar}"/>\r
172         <pathelement location="${icu4j.test-framework.jar}"/>\r
173     </path>\r
174 \r
175     <target name="_all.collate-tests" depends="_all.core, _all.collate, _all.test-framework">\r
176         <ant dir="${icu4j.collate-tests.dir}" inheritAll="false"/>\r
177     </target>\r
178 \r
179     <!-- charset-tests -->\r
180     <path id="javac.classpathref.charset-tests">\r
181         <pathelement location="${icu4j.core.jar}"/>\r
182         <pathelement location="${icu4j.charset.jar}"/>\r
183         <pathelement location="${icu4j.test-framework.jar}"/>\r
184     </path>\r
185 \r
186     <target name="_all.charset-tests" depends="_all.core, _all.charset, _all.test-framework">\r
187         <ant dir="${icu4j.charset-tests.dir}" inheritAll="false"/>\r
188     </target>\r
189 \r
190     <!-- localespi-tests -->\r
191     <path id="javac.classpathref.localespi-tests">\r
192         <pathelement location="${icu4j.core.jar}"/>\r
193         <pathelement location="${icu4j.collate.jar}"/>\r
194         <pathelement location="${icu4j.localespi.jar}"/>\r
195         <pathelement location="${icu4j.test-framework.jar}"/>\r
196     </path>\r
197 \r
198     <target name="_all.localespi-tests" depends="_all.core, _all.collate, _all.localespi, _all.test-framework">\r
199         <ant dir="${icu4j.localespi-tests.dir}" inheritAll="false"/>\r
200     </target>\r
201 \r
202     <!-- packaging-tests -->\r
203     <path id="javac.classpathref.packaging-tests">\r
204         <pathelement location="${icu4j.core.jar}"/>\r
205         <pathelement location="${icu4j.charset.jar}"/>\r
206         <pathelement location="${icu4j.test-framework.jar}"/>\r
207     </path>\r
208 \r
209     <target name="_all.packaging-tests" depends="_all.core, _all.charset, _all.test-framework">\r
210         <ant dir="${icu4j.packaging-tests.dir}" inheritAll="false"/>\r
211     </target>\r
212 \r
213     <!-- translit-tests -->\r
214     <path id="javac.classpathref.translit-tests">\r
215         <pathelement location="${icu4j.core.jar}"/>\r
216         <pathelement location="${icu4j.translit.jar}"/>\r
217         <pathelement location="${icu4j.test-framework.jar}"/>\r
218     </path>\r
219 \r
220     <target name="_all.translit-tests" depends="_all.core, _all.translit, _all.test-framework">\r
221         <ant dir="${icu4j.translit-tests.dir}" inheritAll="false"/>\r
222     </target>\r
223 \r
224     <!-- build-tools -->\r
225     <path id="javac.classpathref.build-tools"/>\r
226 \r
227     <target name="_all.build-tools">\r
228         <ant dir="${icu4j.build-tools.dir}" inheritAll="false"/>\r
229     </target>\r
230 \r
231     <!-- tools -->\r
232     <path id="javac.classpathref.tools">\r
233         <pathelement location="${icu4j.core.jar}"/>\r
234         <pathelement location="${icu4j.collate.jar}"/>\r
235         <pathelement location="${icu4j.translit.jar}"/>\r
236         <pathelement location="${icu4j.test-framework.jar}"/>\r
237         <pathelement location="${icu4j.core-tests.jar}"/>\r
238         <pathelement location="${icu4j.translit-tests.jar}"/>\r
239     </path>\r
240 \r
241     <target name="_all.tools" depends="_all.core, _all.collate, _all.translit, _all.test-framework, _all.core-tests, _all.translit-tests">\r
242         <ant dir="${icu4j.tools.dir}" inheritAll="false"/>\r
243     </target>\r
244 \r
245     <!-- demos -->\r
246     <path id="javac.classpathref.demos">\r
247         <pathelement location="${icu4j.core.jar}"/>\r
248         <pathelement location="${icu4j.translit.jar}"/>\r
249         <pathelement location="${icu4j.charset.jar}"/>\r
250     </path>\r
251 \r
252     <target name="_all.demos" depends="_all.core, _all.translit, _all.charset">\r
253         <ant dir="${icu4j.demos.dir}" inheritAll="false"/>\r
254     </target>\r
255 \r
256 </project>\r