xref: /illumos-gate/usr/src/data/locale/tools/posix.xml (revision 2a6e99a0f1f7d22c0396e8b2ce9b9babbd1056cf)
1<!--
2	This is a stripped down version of tools/java/build.xml
3	from CLDR.  Generally, CLDR tools require Java 1.8, but
4	POSIX conversion tool that we need can be run using older
5	versions.
6-->
7
8<project name="cldr" default="posix" basedir=".">
9	<target name="init">
10		<tstamp />
11		<property name="src.dir" value="cldr/tools/java" />
12		<property name="build.dir" value="cldr/tools/java/classes" />
13		<property name="libs.dir" value="cldr/tools/java/libs" />
14		<property name="jar.file" value="posix.jar" />
15		<property environment="env" />
16		<property file="cldr/tools/java/cldr-tools.properties" />
17		<path id="project.class.path">
18			<pathelement path="${java.class.path}/" />
19			<pathelement path="${build.dir}" />
20			<fileset dir="${libs.dir}" includes="*.jar" />
21		</path>
22	</target>
23
24	<target name="posix" depends="init" description="posix conversion tool">
25		<property name="CLDR_DIR" value="cldr"/>
26		<property name="CLDR_TOOLS" value="cldr/tools/java"/>
27		<property file="${CLDR_DIR}/cldr-tools.properties" />
28		<path id="build.classpath">
29			<pathelement path="${build.dir}" />
30			<pathelement path="${libs.dir}" />
31		</path>
32		<property name="jvm_options"
33			value="-DCLDR_DIR=cldr -DDEBUG=false -Dverbose=false" />
34		<echo message="java home: ${java.home}" />
35		<echo message="java version: ${java.version}" />
36		<echo message="ant java version: ${ant.java.version}" />
37		<echo message="${ant.version}" />
38
39		<mkdir dir="${build.dir}" />
40		<javac includeantruntime="false"
41			includes="org/unicode/cldr/posix/GenerateCharmap.java
42			org/unicode/cldr/posix/GeneratePOSIX.java
43			org/unicode/cldr/tool/Main.java"
44			srcdir="${src.dir}" destdir="${build.dir}"
45			classpathref="project.class.path"
46			source="1.7" target="1.7" debug="on"
47			deprecation="off" encoding="UTF-8" />
48		<mkdir dir="${build.dir}/org/unicode/cldr/util/data" />
49		<copy todir="${build.dir}/org/unicode/cldr/util/data">
50			<fileset dir="${src.dir}/org/unicode/cldr/util/data" />
51		</copy>
52		<jar jarfile="${jar.file}" compress="true"
53			includes="org/unicode/cldr/draft/**/*
54			org/unicode/cldr/icu/**/*
55			org/unicode/cldr/posix/**/*
56			org/unicode/cldr/test/**/*
57			org/unicode/cldr/tool/**/*
58			org/unicode/cldr/util/**/*
59			com/ibm/icu/**/*"
60			basedir="${build.dir}">
61			<manifest>
62				<attribute name="Main-Class"
63					value="org.unicode.cldr.tool.Main" />
64				<attribute name="Class-Path"
65					value="${libs.dir}/${cldr.libs.icu4j}
66					${libs.dir}/${cldr.libs.utilities}
67					${libs.dir}/${cldr.libs.xerces}
68					${libs.dir}/${cldr.libs.guava}
69					${libs.dir}/${cldr.libs.gson}
70					${cldr.libs.icu4j}
71					${cldr.libs.utilities}
72					${cldr.libs.xerces}
73					${cldr.libs.gson}" />
74			</manifest>
75		</jar>
76	</target>
77
78	<target name="clean" depends="init" description="remove build targets">
79		<delete dir="${build.dir}" />
80		<delete file="${jar.file}" />
81	</target>
82</project>
83