12e5b6d6dSopenharmony_ci<!-- 22e5b6d6dSopenharmony_ci* © 2016 and later: Unicode, Inc. and others. 32e5b6d6dSopenharmony_ci* License & terms of use: http://www.unicode.org/copyright.html 42e5b6d6dSopenharmony_ci******************************************************************************* 52e5b6d6dSopenharmony_ci* Copyright (C) 2011-2014, International Business Machines Corporation and * 62e5b6d6dSopenharmony_ci* others. All Rights Reserved. * 72e5b6d6dSopenharmony_ci******************************************************************************* 82e5b6d6dSopenharmony_ci--> 92e5b6d6dSopenharmony_ci<project name="samples" default="build" basedir="."> 102e5b6d6dSopenharmony_ci <property file="build-local.properties"/> 112e5b6d6dSopenharmony_ci <property file="build.properties"/> 122e5b6d6dSopenharmony_ci <import file="${shared.dir}/build/common-targets.xml"/> 132e5b6d6dSopenharmony_ci 142e5b6d6dSopenharmony_ci <path id="javac.classpathref"> 152e5b6d6dSopenharmony_ci <path refid="javac.classpathref.${ant.project.name}"/> 162e5b6d6dSopenharmony_ci </path> 172e5b6d6dSopenharmony_ci <property name="jar.name" value="icu4j-${ant.project.name}.jar"/> 182e5b6d6dSopenharmony_ci <property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/> 192e5b6d6dSopenharmony_ci 202e5b6d6dSopenharmony_ci <target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/> 212e5b6d6dSopenharmony_ci 222e5b6d6dSopenharmony_ci <target name="build-all" depends="@build-all" description="Build the project including all dependencies"/> 232e5b6d6dSopenharmony_ci 242e5b6d6dSopenharmony_ci <target name="clean" depends="@clean" description="Clean up the build outputs"/> 252e5b6d6dSopenharmony_ci 262e5b6d6dSopenharmony_ci <target name="compile" depends="@compile" description="Compile java source files"/> 272e5b6d6dSopenharmony_ci 282e5b6d6dSopenharmony_ci <target name="copy" depends="@copy" description="Copy non-java runtime files to the project's binary directory"/> 292e5b6d6dSopenharmony_ci 302e5b6d6dSopenharmony_ci <target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/> 312e5b6d6dSopenharmony_ci 322e5b6d6dSopenharmony_ci <target name="src-jar" depends="@src-jar" description="Create the project's source jar file"/> 332e5b6d6dSopenharmony_ci 342e5b6d6dSopenharmony_ci <target name="rebuild-iuc-data" description="Rebuild IUC sample data"> 352e5b6d6dSopenharmony_ci <!-- package to build into --> 362e5b6d6dSopenharmony_ci <property name="iuc.package" value="com/ibm/icu/samples/iuc" /> 372e5b6d6dSopenharmony_ci <!-- output location --> 382e5b6d6dSopenharmony_ci <property name="iuc.dataoutdir" value="src/${iuc.package}/data" /> 392e5b6d6dSopenharmony_ci <!-- tmp location --> 402e5b6d6dSopenharmony_ci <property name="iuc.tmp" value="out/tmp" /> 412e5b6d6dSopenharmony_ci <property name="iuc.res.src" value="c" /> 422e5b6d6dSopenharmony_ci <!-- property for the root dir of our messages. --> 432e5b6d6dSopenharmony_ci <fail unless="iuc.res.src" message="Please set -Diuc.res.src=/path/ where /path/ is a checkout of http://source.icu-project.org/repos/icu/icuapps/trunk/icufacts/c" /> 442e5b6d6dSopenharmony_ci <!-- properties for the two packages we will be building. --> 452e5b6d6dSopenharmony_ci <property name="iuc.res.reshello" value="reshello" /> 462e5b6d6dSopenharmony_ci <property name="iuc.res.popmsg" value="popmsg" /> 472e5b6d6dSopenharmony_ci <!-- paths for these two packages --> 482e5b6d6dSopenharmony_ci <property name="iuc.res.reshello.path" value="${iuc.res.src}/s30_reshello/${iuc.res.reshello}" /> 492e5b6d6dSopenharmony_ci <property name="iuc.res.popmsg.path" value="${iuc.res.src}/s40_popmsg/${iuc.res.popmsg}" /> 502e5b6d6dSopenharmony_ci <property name="iuc.bldicures" value="${iuc.res.src}/bldicures.py" /> 512e5b6d6dSopenharmony_ci <!-- <available file="${iuc.bldicures}" type="file" property="iuc.bldicures.present" /> --> 522e5b6d6dSopenharmony_ci <fail unless="iuc.bldicures" message="Please set -Diuc.bldicures=/path/bldicures.py - which you can get from <https://github.com/unicode-org/icu/blob/main/tools/scripts/bldicures.py>" /> 532e5b6d6dSopenharmony_ci <mkdir dir="${iuc.tmp}" /> 542e5b6d6dSopenharmony_ci <!-- make reshello --> 552e5b6d6dSopenharmony_ci <delete dir="${iuc.tmp}/${iuc.res.reshello}" /> <!-- clean up --> 562e5b6d6dSopenharmony_ci <exec executable="${iuc.bldicures}"> 572e5b6d6dSopenharmony_ci <arg value="-v" /> 582e5b6d6dSopenharmony_ci <arg value="--endian" /> 592e5b6d6dSopenharmony_ci <arg value="big" /> 602e5b6d6dSopenharmony_ci <arg value="--mode" /> 612e5b6d6dSopenharmony_ci <arg value="files" /> 622e5b6d6dSopenharmony_ci <arg value="--from" /> 632e5b6d6dSopenharmony_ci <arg value="${iuc.res.reshello.path}" /> 642e5b6d6dSopenharmony_ci <arg value="--dest" /> 652e5b6d6dSopenharmony_ci <arg value="${iuc.tmp}/${iuc.res.reshello}" /> 662e5b6d6dSopenharmony_ci <arg value="--name" /> 672e5b6d6dSopenharmony_ci <arg value="${iuc.res.reshello}" /> 682e5b6d6dSopenharmony_ci </exec> 692e5b6d6dSopenharmony_ci <move file="${iuc.tmp}/${iuc.res.reshello}/${iuc.res.reshello}" todir="${iuc.dataoutdir}/" /> 702e5b6d6dSopenharmony_ci <!-- make popmsg --> 712e5b6d6dSopenharmony_ci <delete dir="${iuc.tmp}/${iuc.res.popmsg}" /> <!-- clean up --> 722e5b6d6dSopenharmony_ci <exec executable="${iuc.bldicures}"> 732e5b6d6dSopenharmony_ci <arg value="-v" /> 742e5b6d6dSopenharmony_ci <arg value="--endian" /> 752e5b6d6dSopenharmony_ci <arg value="big" /> 762e5b6d6dSopenharmony_ci <arg value="--mode" /> 772e5b6d6dSopenharmony_ci <arg value="files" /> 782e5b6d6dSopenharmony_ci <arg value="--from" /> 792e5b6d6dSopenharmony_ci <arg value="${iuc.res.popmsg.path}" /> 802e5b6d6dSopenharmony_ci <arg value="--dest" /> 812e5b6d6dSopenharmony_ci <arg value="${iuc.tmp}/${iuc.res.popmsg}" /> 822e5b6d6dSopenharmony_ci <arg value="--name" /> 832e5b6d6dSopenharmony_ci <arg value="${iuc.res.popmsg}" /> 842e5b6d6dSopenharmony_ci </exec> 852e5b6d6dSopenharmony_ci <move file="${iuc.tmp}/${iuc.res.popmsg}/${iuc.res.popmsg}" todir="${iuc.dataoutdir}/" /> 862e5b6d6dSopenharmony_ci <delete dir="${iuc.tmp}" /> <!-- clean up --> 872e5b6d6dSopenharmony_ci </target> 882e5b6d6dSopenharmony_ci</project> 89