build.xml revision 2d2bb24f747c65578da13d5b13b82f0669690461
17935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert<!--
22d2bb24f747c65578da13d5b13b82f0669690461Fredrik Roubert* © 2016 and later: Unicode, Inc. and others.
32d2bb24f747c65578da13d5b13b82f0669690461Fredrik Roubert* License & terms of use: http://www.unicode.org/copyright.html#License
47935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert*******************************************************************************
5f716bda031dccdec5e47bb40e758c5901d209729Fredrik Roubert* Copyright (C) 2009-2015, International Business Machines Corporation and
6f716bda031dccdec5e47bb40e758c5901d209729Fredrik Roubert* others. All Rights Reserved.
77935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert*******************************************************************************
87935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert-->
97935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert<project name="charset" default="build" basedir=".">
107935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <property file="build-local.properties"/>
117935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <property file="build.properties"/>
127935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <import file="${shared.dir}/build/common-targets.xml"/>
137935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
147935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <path id="javac.classpathref">
157935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert        <path refid="javac.classpathref.${ant.project.name}"/>
167935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    </path>
177935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
187935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
197935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
207935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
217935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
227935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
237935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
247935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="clean" depends="@clean" description="Clean up the build outputs"/>
257935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
267935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="compile" depends="@compile" description="Compile java source files"/>
277935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
287935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="copy" depends="@copy, copy-data" description="Copy non-java runtime files to the project's binary directory"/>
297935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
307935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
317935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
327935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="src-jar" depends="@src-jar" description="Create the project's source jar file"/>
337935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
347935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    <target name="findbugs" depends="@findbugs" description="Search the project for possible defects using FindBugs." />
357935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
36f716bda031dccdec5e47bb40e758c5901d209729Fredrik Roubert    <target name="copy-data" unless="icu4c.data.path" description="Extract pre-built ICU core data files and copy them to the project's binary directory">
377935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert        <unjar src="${icu4j.data.jar}" dest="${bin.dir}">
387935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert            <patternset>
397935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert                <include name="**/*.cnv"/>
407935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert                <include name="**/cnvalias.icu"/>
417935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert            </patternset>
427935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert        </unjar>
437935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert    </target>
447935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert
457935b1839a081ed19ae0d33029ad3c09632a2caaFredrik Roubert</project>
46