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