ICU-7943 New Eclipse ICU4J plug-in build script, merged from my work branch.
X-SVN-Rev: 28619
This commit is contained in:
parent
0316093289
commit
f5b73e02c8
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -286,6 +286,8 @@ icu4c/source/tools/pkgdata/pkgdata.vcxproj.filters -text
|
||||
icu4c/source/tools/toolutil/toolutil.vcxproj -text
|
||||
icu4j/build.properties -text
|
||||
icu4j/demos/manifest.stub -text
|
||||
icu4j/eclipse-build/plugins.template/com.ibm.icu.tests/META-INF/MANIFEST.MF -text
|
||||
icu4j/eclipse-build/plugins.template/com.ibm.icu/META-INF/MANIFEST.MF -text
|
||||
icu4j/main/classes/charset/.classpath -text
|
||||
icu4j/main/classes/charset/.project -text
|
||||
icu4j/main/classes/charset/.settings/org.eclipse.jdt.core.prefs -text
|
||||
|
7
icu4j/eclipse-build/build.properties
Normal file
7
icu4j/eclipse-build/build.properties
Normal file
@ -0,0 +1,7 @@
|
||||
#*******************************************************************************
|
||||
#* Copyright (C) 2010, International Business Machines Corporation and *
|
||||
#* others. All Rights Reserved. *
|
||||
#*******************************************************************************
|
||||
icu4j.plugin.impl.version.string=4.5.2
|
||||
copyright.eclipse=Licensed Materials - Property of IBM \n (C) Copyright IBM Corp. 2000, 2010. All Rights Reserved. \n IBM is a registered trademark of IBM Corp.
|
||||
icu4j.data.version.number=45
|
208
icu4j/eclipse-build/build.xml
Normal file
208
icu4j/eclipse-build/build.xml
Normal file
@ -0,0 +1,208 @@
|
||||
<!--
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
-->
|
||||
|
||||
<project name="icu4j-eclipse" default="build" basedir=".">
|
||||
<property file="build.properties"/>
|
||||
|
||||
<property name="out.dir" value="out"/>
|
||||
<property name="eclipse.projects.dir" value="${out.dir}/projects"/>
|
||||
|
||||
<property name="main.dir" value="../main"/>
|
||||
<property name="shared.dir" value="${main.dir}/shared"/>
|
||||
<property file="${shared.dir}/build/common.properties"/>
|
||||
<property file="${shared.dir}/build/locations.properties"/>
|
||||
|
||||
<property environment="env"/>
|
||||
|
||||
<target name="clean" description="Delete all build outputs">
|
||||
<delete dir="${out.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="build"
|
||||
depends="initEnv,icuProjectFiles"
|
||||
description="Build icu4j plug-ins">
|
||||
|
||||
<!-- copy OSGi jar file to baseLocation -->
|
||||
<mkdir dir="${eclipse.projects.dir}/baseLocation/features"/>
|
||||
<mkdir dir="${eclipse.projects.dir}/baseLocation/plugins"/>
|
||||
<copy toDir="${eclipse.projects.dir}/baseLocation/plugins" file="${eclipse.osgi.jar}"/>
|
||||
|
||||
<!-- copy PDE build script files and run the build -->
|
||||
<pathconvert property="eclipse.projects.dir.full" dirsep="/">
|
||||
<path location="${basedir}/${eclipse.projects.dir}"/>
|
||||
</pathconvert>
|
||||
|
||||
<antcall target="runEclipsePDEBuild">
|
||||
<param name="icu.plugin.id" value="com.ibm.icu"/>
|
||||
</antcall>
|
||||
|
||||
</target>
|
||||
|
||||
<target name="initPluginVersion">
|
||||
<tstamp>
|
||||
<format property="build.date" pattern="yyyyMMdd"/>
|
||||
</tstamp>
|
||||
<property name="icu4j.eclipse.build.version.string" value="${icu4j.plugin.impl.version.string}.v${build.date}"/>
|
||||
</target>
|
||||
|
||||
<target name="initEnv"
|
||||
depends="initEclipseHome,initEclipseLauncher,initEclipseOSGiJar,initEclipsePDE"
|
||||
description="Initialize eclipse PDE build environment">
|
||||
<echo message="[PDE build configuration properties]"/>
|
||||
<echo message=" Eclipse home: ${eclipse.home}"/>
|
||||
<echo message=" Launcher jar: ${eclipse.launcher}"/>
|
||||
<echo message=" OSGi bundle jar: ${eclipse.osgi.jar}"/>
|
||||
<echo message=" Base OS: ${eclipse.baseos}"/>
|
||||
<echo message=" Base WS: ${eclipse.basews}"/>
|
||||
<echo message=" Base ARCH: ${eclipse.basearch}"/>
|
||||
</target>
|
||||
|
||||
<target name="initEclipseHome"
|
||||
if="env.ECLIPSE_HOME"
|
||||
unless="eclipse.home"
|
||||
description="Initialize the property eclipse.home from the environment variable ECLIPSE_HOME">
|
||||
<property name="eclipse.home" value="${env.ECLIPSE_HOME}"/>
|
||||
</target>
|
||||
|
||||
<target name="initEclipseLauncher"
|
||||
if="eclipse.home"
|
||||
description="Locate org.eclipse.equinox.launcher jar file for eclipse 3.3 and beyond">
|
||||
<first id="equinox.launcher">
|
||||
<fileset dir="${eclipse.home}/plugins">
|
||||
<include name="org.eclipse.equinox.launcher_*.jar"/>
|
||||
</fileset>
|
||||
</first>
|
||||
<pathconvert property="eclipse.launcher" dirsep="/" refid="equinox.launcher"/>
|
||||
</target>
|
||||
|
||||
<target name="initEclipseOSGiJar"
|
||||
if="eclipse.home"
|
||||
description="Locate org.eclipse.osgi plugin jar file">
|
||||
<first id="osgi.bundle">
|
||||
<fileset dir="${eclipse.home}/plugins">
|
||||
<include name="org.eclipse.osgi_*.jar"/>
|
||||
</fileset>
|
||||
</first>
|
||||
<pathconvert property="eclipse.osgi.jar" dirsep="/" refid="osgi.bundle"/>
|
||||
</target>
|
||||
|
||||
<target name="initEclipsePDE"
|
||||
depends="locateEclipsePDE"
|
||||
if="eclipse.pde.dir"
|
||||
description="Set up PDE runtime arguments">
|
||||
<property file="${eclipse.pde.dir}/templates/headless-build/build.properties" prefix="pde.template"/>
|
||||
<property name="eclipse.baseos" value="${pde.template.baseos}"/>
|
||||
<property name="eclipse.basews" value="${pde.template.basews}"/>
|
||||
<property name="eclipse.basearch" value="${pde.template.basearch}"/>
|
||||
</target>
|
||||
|
||||
<target name="locateEclipsePDE"
|
||||
if="eclipse.home"
|
||||
description="Locate org.eclipse.pde.build plug-in and set the property 'eclipse.pde.dir'">
|
||||
<first id="eclipse.pde.plugin.dir">
|
||||
<dirset dir="${eclipse.home}/plugins">
|
||||
<include name="org.eclipse.pde.build_*"/>
|
||||
</dirset>
|
||||
</first>
|
||||
<pathconvert property="eclipse.pde.dir" dirsep="/" refid="eclipse.pde.plugin.dir"/>
|
||||
</target>
|
||||
|
||||
<target name="runEclipsePDEBuild">
|
||||
<mkdir dir="${eclipse.projects.dir}/buildScripts/${icu.plugin.id}"/>
|
||||
<copy toDir="${eclipse.projects.dir}/buildScripts/${icu.plugin.id}">
|
||||
<fileset dir="pdebuild" includes="**/*"/>
|
||||
<filterset>
|
||||
<filter token="PLUGIN_ID" value="${icu.plugin.id}"/>
|
||||
<filter token="BUILD_DIR" value="${eclipse.projects.dir.full}"/>
|
||||
<filter token="BUILD_TYPE" value="ICU4J"/>
|
||||
<filter token="BUILD_ID" value="${icu.plugin.id}"/>
|
||||
<filter token="BASE_LOCATION" value="${eclipse.projects.dir.full}/baseLocation"/>
|
||||
<filter token="BASE_OS" value="${eclipse.baseos}"/>
|
||||
<filter token="BASE_WS" value="${eclipse.basews}"/>
|
||||
<filter token="BASE_ARCH" value="${eclipse.basearch}"/>
|
||||
</filterset>
|
||||
</copy>
|
||||
|
||||
<java jar="${eclipse.launcher}" fork="true" failonerror="true">
|
||||
<arg value="-application"/>
|
||||
<arg value="org.eclipse.ant.core.antRunner"/>
|
||||
<arg value="-buildfile"/>
|
||||
<arg value="${eclipse.pde.dir}/scripts/build.xml"/>
|
||||
<arg value="-Dbuilder=${eclipse.projects.dir.full}/buildScripts/${icu.plugin.id}"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="icuProjectFiles"
|
||||
depends="initPluginVersion"
|
||||
description="Copy com.ibm.icu plug-in project files">
|
||||
|
||||
<delete failonerror="no">
|
||||
<fileset dir="${eclipse.projects.dir}/plugins/com.ibm.icu" />
|
||||
<fileset dir="${eclipse.projects.dir}/features/com.ibm.icu" />
|
||||
</delete>
|
||||
|
||||
<!-- icu source -->
|
||||
<copy toDir="${eclipse.projects.dir}/plugins/com.ibm.icu/src">
|
||||
<fileset dir="${icu4j.collate.dir}/src"/>
|
||||
<fileset dir="${icu4j.core.dir}/src"/>
|
||||
<fileset dir="${icu4j.currdata.dir}/src"/>
|
||||
<fileset dir="${icu4j.langdata.dir}/src"/>
|
||||
<fileset dir="${icu4j.regiondata.dir}/src"/>
|
||||
<fileset dir="${icu4j.translit.dir}/src"/>
|
||||
</copy>
|
||||
|
||||
<!-- overwriting the ICU runtime configuration file for forcing ICU4J plugin to use JDK time zone rules -->
|
||||
<copy file="misc/ICUConfig.properties"
|
||||
toDir="${eclipse.projects.dir}/plugins/com.ibm.icu/src/com/ibm/icu"
|
||||
overwrite="true"/>
|
||||
|
||||
<!-- icu data -->
|
||||
<unjar src="${icu4j.data.jar}" dest="${eclipse.projects.dir}/plugins/com.ibm.icu/src">
|
||||
<patternset>
|
||||
<exclude name="**/*.cnv"/>
|
||||
<exclude name="**/cnvalias.icu"/>
|
||||
</patternset>
|
||||
</unjar>
|
||||
|
||||
<!-- plugin project -->
|
||||
<copy todir="${eclipse.projects.dir}/plugins/com.ibm.icu">
|
||||
<fileset dir="plugins.template/com.ibm.icu"/>
|
||||
<filterset>
|
||||
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
||||
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
||||
<filter token="IMPL_VERSION" value="${icu4j.impl.version}" />
|
||||
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
||||
</filterset>
|
||||
</copy>
|
||||
|
||||
<!-- license -->
|
||||
<copy file="${shared.dir}/licenses/license.html"
|
||||
todir="${eclipse.projects.dir}/plugins/com.ibm.icu/about_files" />
|
||||
|
||||
<!-- ucd terms -->
|
||||
<copy file="${shared.dir}/licenses/unicode-license.txt"
|
||||
todir="${eclipse.projects.dir}/plugins/com.ibm.icu/about_files" />
|
||||
|
||||
<!-- about -->
|
||||
<copy file="misc/about_icu.html"
|
||||
tofile="${eclipse.projects.dir}/plugins/com.ibm.icu/about.html" />
|
||||
|
||||
<!-- FEATURE FILES -->
|
||||
<copy todir="${eclipse.projects.dir}/features/com.ibm.icu">
|
||||
<fileset dir="features.template/com.ibm.icu"/>
|
||||
<filterset>
|
||||
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
||||
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
||||
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
||||
</filterset>
|
||||
</copy>
|
||||
|
||||
</target>
|
||||
|
||||
</project>
|
17
icu4j/eclipse-build/features.template/com.ibm.icu/.project
Normal file
17
icu4j/eclipse-build/features.template/com.ibm.icu/.project
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.ibm.icu-feature</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,20 @@
|
||||
###############################################################################
|
||||
# Copyright (c) 2000, 2008 IBM Corporation and others.
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
# Contributors:
|
||||
# IBM Corporation - initial API and implementation
|
||||
###############################################################################
|
||||
bin.includes =\
|
||||
epl-v10.html,\
|
||||
eclipse_update_120.jpg,\
|
||||
feature.xml,\
|
||||
feature.properties,\
|
||||
license.html
|
||||
outputUpdateJars = true
|
||||
|
||||
generate.plugin@com.ibm.icu.source=com.ibm.icu
|
||||
|
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="com.ibm.icu"
|
||||
label="com.ibm.icu"
|
||||
version="@BUILD_VERSION@">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
[Enter Feature Description here.]
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
[Enter License Description here.]
|
||||
</license>
|
||||
|
||||
<plugin
|
||||
id="com.ibm.icu"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="@BUILD_VERSION@"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="com.ibm.icu.source"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="@BUILD_VERSION@"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
12
icu4j/eclipse-build/misc/ICUConfig.properties
Normal file
12
icu4j/eclipse-build/misc/ICUConfig.properties
Normal file
@ -0,0 +1,12 @@
|
||||
#******************************************************************************
|
||||
# Copyright (C) 2008-2009, International Business Machines Corporation and *
|
||||
# others. All Rights Reserved. *
|
||||
#******************************************************************************
|
||||
# This is the properties contains ICU runtime configuration for eclispe plug-in
|
||||
#
|
||||
|
||||
#
|
||||
# The default TimeZone implementation type used by the ICU TimeZone
|
||||
# factory method. [ ICU | JDK ]
|
||||
#
|
||||
com.ibm.icu.util.TimeZone.DefaultTimeZoneType = JDK
|
54
icu4j/eclipse-build/misc/about_icu.html
Normal file
54
icu4j/eclipse-build/misc/about_icu.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
|
||||
<title>About</title>
|
||||
</head>
|
||||
<body lang="EN-US">
|
||||
<h2>About This Content</h2>
|
||||
|
||||
<p>April 8, 2010</p>
|
||||
<h3>License</h3>
|
||||
|
||||
<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
|
||||
indicated below, the Content is provided to you under the terms and conditions of the
|
||||
Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
|
||||
at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
|
||||
For purposes of the EPL, "Program" will mean the Content.</p>
|
||||
|
||||
<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
|
||||
being redistributed by another party ("Redistributor") and different terms and conditions may
|
||||
apply to your use of any object code in the Content. Check the Redistributor's license that was
|
||||
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
|
||||
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
|
||||
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
|
||||
|
||||
|
||||
<h3>Third Party Content</h3>
|
||||
<p>The Content includes items that have been sourced from third parties as set out below. If you
|
||||
did not receive this Content directly from the Eclipse Foundation, the following is provided
|
||||
for informational purposes only, and you should look to the Redistributor's license for
|
||||
terms and conditions of use.</p>
|
||||
|
||||
<p><strong>ICU4J 4.2.1.v20100408 plug-in</strong> <br/><br/>
|
||||
The plug-in includes software ("ICU4J") developed by International Business Machines
|
||||
Corporation and others.
|
||||
<br/><br/>
|
||||
ICU4J is:
|
||||
<blockquote>
|
||||
Copyright (c) 1995-2010 International Business Machines Corporation and others<br/>
|
||||
All rights reserved.
|
||||
</blockquote>
|
||||
<p>
|
||||
Your use of ICU4J is subject to the terms and conditions of the ICU4J license. A copy of the
|
||||
license is contained in the file <a href="about_files/license.html" target="_blank">about_files/license.html</a>.</p>
|
||||
<p>
|
||||
ICU4J bundles data files imported from the Unicode Character Database and the Locale Data. A copy of the
|
||||
Unicode Data and Software license is contained in the file <a href="about_files/ucdterms.txt"/>about_files/ucdterms.txt</a>.</p>
|
||||
<p>
|
||||
The project information including source code, documentations and demo programs are available on
|
||||
the <a href="http://www.icu-project.org">ICU public web site</a>.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
51
icu4j/eclipse-build/misc/about_icu_base.html
Normal file
51
icu4j/eclipse-build/misc/about_icu_base.html
Normal file
@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
|
||||
<title>About</title>
|
||||
</head>
|
||||
<body lang="EN-US">
|
||||
<h2>About This Content</h2>
|
||||
|
||||
<p>April 8, 2010</p>
|
||||
<h3>License</h3>
|
||||
|
||||
<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
|
||||
indicated below, the Content is provided to you under the terms and conditions of the
|
||||
Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
|
||||
at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
|
||||
For purposes of the EPL, "Program" will mean the Content.</p>
|
||||
|
||||
<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
|
||||
being redistributed by another party ("Redistributor") and different terms and conditions may
|
||||
apply to your use of any object code in the Content. Check the Redistributor's license that was
|
||||
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
|
||||
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
|
||||
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
|
||||
|
||||
|
||||
<h3>Third Party Content</h3>
|
||||
<p>The Content includes items that have been sourced from third parties as set out below. If you
|
||||
did not receive this Content directly from the Eclipse Foundation, the following is provided
|
||||
for informational purposes only, and you should look to the Redistributor's license for
|
||||
terms and conditions of use.</p>
|
||||
|
||||
<p><strong>ICU4J 4.2.1.v20100408 base plug-in</strong> <br/><br/>
|
||||
The plug-in includes software ("ICU4J") developed by International Business Machines
|
||||
Corporation and others.
|
||||
<br/><br/>
|
||||
ICU4J is:
|
||||
<blockquote>
|
||||
Copyright (c) 1995-2010 International Business Machines Corporation and others<br/>
|
||||
All rights reserved.
|
||||
</blockquote>
|
||||
<p>
|
||||
Your use of ICU4J is subject to the terms and conditions of the ICU4J license. A copy of the
|
||||
license is contained in the file <a href="about_files/license.html" target="_blank">about_files/license.html</a>.</p>
|
||||
<p>
|
||||
The project information including source code, documentations and demo programs are available on
|
||||
the <a href="http://www.icu-project.org">ICU public web site</a>.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
28
icu4j/eclipse-build/pdebuild/allElements.xml
Normal file
28
icu4j/eclipse-build/pdebuild/allElements.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<project name="allElements Delegator">
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Run a given ${target} on all elements being built -->
|
||||
<!-- Replace element.id with the id of the top level element being built. -->
|
||||
<!-- If element.id does not exist in ${buildDirectory}/features/element.id -->
|
||||
<!-- or ${baseLocation}/features/element.id, then you must provide the -->
|
||||
<!-- location by setting the property "pluginPath" -->
|
||||
<!-- Add on <ant> task for each top level element being built. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="allElementsDelegator">
|
||||
<ant antfile="${genericTargets}" target="${target}">
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="@PLUGIN_ID@" />
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Targets to assemble the built elements for particular configurations -->
|
||||
<!-- These generally call the generated assemble scripts (named in -->
|
||||
<!-- ${assembleScriptName}) but may also add pre and post processing -->
|
||||
<!-- Add one target for each root element and each configuration -->
|
||||
<!-- Replace element.id with the id of the top level element being built -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="assemble.@PLUGIN_ID@">
|
||||
<ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
|
||||
</target>
|
||||
</project>
|
220
icu4j/eclipse-build/pdebuild/build.properties
Normal file
220
icu4j/eclipse-build/pdebuild/build.properties
Normal file
@ -0,0 +1,220 @@
|
||||
###############################################################################
|
||||
# Copyright (c) 2003-2008 IBM Corporation and others.
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
# Contributors:
|
||||
# IBM Corporation - initial API and implementation
|
||||
###############################################################################
|
||||
#####################
|
||||
# Parameters describing how and where to execute the build.
|
||||
# Typical users need only update the following properties:
|
||||
# baseLocation - where things you are building against are installed
|
||||
# bootclasspath - The base jars to compile against (typicaly rt.jar)
|
||||
# configs - the list of {os, ws, arch} configurations to build.
|
||||
#
|
||||
# Of course any of the settings here can be overridden by spec'ing
|
||||
# them on the command line (e.g., -DbaseLocation=d:/eclipse
|
||||
|
||||
############# PRODUCT/PACKAGING CONTROL #############
|
||||
product=/plugin or feature id/path/to/.product
|
||||
runPackager=true
|
||||
|
||||
#Set the name of the archive that will result from the product build.
|
||||
#archiveNamePrefix=
|
||||
|
||||
# The prefix that will be used in the generated archive.
|
||||
#archivePrefix=<output archive root>
|
||||
archivePrefix=
|
||||
|
||||
# The location underwhich all of the build output will be collected.
|
||||
collectingFolder=${archivePrefix}
|
||||
|
||||
# The list of {os, ws, arch} configurations to build. This
|
||||
# value is a '&' separated list of ',' separate triples. For example,
|
||||
# configs=win32,win32,x86 & linux,motif,x86
|
||||
# By default the value is *,*,*
|
||||
#configs=win32, win32, x86 & \
|
||||
# linux, gtk, ppc &\
|
||||
# linux, gtk, x86 & \
|
||||
# linux, gtk, x86_64 & \
|
||||
# linux, motif, x86 & \
|
||||
# solaris, motif, sparc & \
|
||||
# solaris, gtk, sparc & \
|
||||
# aix, motif, ppc & \
|
||||
# hpux, motif, PA_RISC & \
|
||||
# macosx, carbon, ppc
|
||||
|
||||
# By default PDE creates one archive (result) per entry listed in the configs property.
|
||||
# Setting this value to try will cause PDE to only create one output containing all
|
||||
# artifacts for all the platforms listed in the configs property.
|
||||
#groupConfigurations=true
|
||||
|
||||
#The format of the archive. By default a zip is created using antZip.
|
||||
#The list can only contain the configuration for which the desired format is different than zip.
|
||||
#archivesFormat=win32, win32, x86 - antZip& \
|
||||
# linux, gtk, ppc - antZip &\
|
||||
# linux, gtk, x86 - antZip& \
|
||||
# linux, gtk, x86_64 - antZip& \
|
||||
# linux, motif, x86 - antZip& \
|
||||
# solaris, motif, sparc - antZip& \
|
||||
# solaris, gtk, sparc - antZip& \
|
||||
# aix, motif, ppc - antZip& \
|
||||
# hpux, motif, PA_RISC - antZip& \
|
||||
# macosx, carbon, ppc - antZip
|
||||
|
||||
#Set to true if you want the output to be ready for an update jar (no site.xml generated)
|
||||
#outputUpdateJars = false
|
||||
|
||||
#Set to true for Jnlp generation
|
||||
#codebase should be a URL that will be used as the root of all relative URLs in the output.
|
||||
#generateJnlp=false
|
||||
#jnlp.codebase=<codebase url>
|
||||
#jnlp.j2se=<j2se version>
|
||||
#jnlp.locale=<a locale>
|
||||
|
||||
#Set to true if you want to sign jars
|
||||
#signJars=false
|
||||
#sign.alias=<alias>
|
||||
#sign.keystore=<keystore location>
|
||||
#sign.storepass=<keystore password>
|
||||
|
||||
#Arguments to send to the zip executable
|
||||
zipargs=
|
||||
|
||||
#Arguments to send to the tar executable
|
||||
tarargs=
|
||||
|
||||
#Control the creation of a file containing the version included in each configuration - on by default
|
||||
#generateVersionsLists=false
|
||||
|
||||
############## BUILD NAMING CONTROL ################
|
||||
# The directory into which the build elements are fetched and where
|
||||
# the build takes place.
|
||||
buildDirectory=@BUILD_DIR@
|
||||
|
||||
# Type of build. Used in naming the build output. Typically this value is
|
||||
# one of I, N, M, S, ...
|
||||
buildType=@BUILD_TYPE@
|
||||
|
||||
# ID of the build. Used in naming the build output.
|
||||
buildId=@BUILD_ID@
|
||||
|
||||
# Label for the build. Used in naming the build output
|
||||
buildLabel=${buildType}.${buildId}
|
||||
|
||||
# Timestamp for the build. Used in naming the build output
|
||||
timestamp=007
|
||||
|
||||
#The value to be used for the qualifier of a plugin or feature when you want to override the value computed by pde.
|
||||
#The value will only be applied to plugin or features indicating build.properties, qualifier = context
|
||||
#forceContextQualifier=<the value for the qualifier>
|
||||
|
||||
#Enable / disable the generation of a suffix for the features that use .qualifier.
|
||||
#The generated suffix is computed according to the content of the feature
|
||||
#generateFeatureVersionSuffix=true
|
||||
|
||||
############# BASE CONTROL #############
|
||||
# Settings for the base Eclipse components and Java class libraries
|
||||
# against which you are building.
|
||||
# Base location for anything the build needs to compile against. For example,
|
||||
# in most RCP app or a plug-in, the baseLocation should be the location of a previously
|
||||
# installed Eclipse against which the application or plug-in code will be compiled and the RCP delta pack.
|
||||
|
||||
base=<path/to/parent/of/eclipse>
|
||||
#baseLocation=${base}/eclipse
|
||||
baseLocation=@BASE_LOCATION@
|
||||
#Os/Ws/Arch/nl of the eclipse specified by baseLocation
|
||||
baseos=@BASE_OS@
|
||||
basews=@BASE_WS@
|
||||
basearch=@BASE_ARCH@
|
||||
|
||||
#this property indicates whether you want the set of plug-ins and features to be considered during the build to be limited to the ones reachable from the features / plugins being built
|
||||
filteredDependencyCheck=false
|
||||
|
||||
#pluginPath is a list of locations in which to find plugins and features. This list is separated by the platform file separator (; or :)
|
||||
#a location is one of:
|
||||
#- the location of the jar or folder that is the plugin or feature : /path/to/foo.jar or /path/to/foo
|
||||
#- a directory that contains a /plugins or /features subdirectory
|
||||
#- the location of a feature.xml, or for 2.1 style plugins, the plugin.xml or fragment.xml
|
||||
#pluginPath=
|
||||
|
||||
skipBase=true
|
||||
eclipseURL=<url for eclipse download site>
|
||||
eclipseBuildId=<Id of Eclipse build to get>
|
||||
eclipseBaseURL=${eclipseURL}/eclipse-platform-${eclipseBuildId}-win32.zip
|
||||
|
||||
|
||||
############# MAP FILE CONTROL ################
|
||||
# This section defines CVS tags to use when fetching the map files from the repository.
|
||||
# If you want to fetch the map file from repository / location, change the getMapFiles target in the customTargets.xml
|
||||
|
||||
skipMaps=true
|
||||
mapsRepo=:pserver:anonymous@example.com/path/to/repo
|
||||
mapsRoot=path/to/maps
|
||||
mapsCheckoutTag=HEAD
|
||||
|
||||
#tagMaps=true
|
||||
mapsTagTag=v${buildId}
|
||||
|
||||
|
||||
############ REPOSITORY CONTROL ###############
|
||||
# This section defines properties parameterizing the repositories where plugins, fragments
|
||||
# bundles and features are being obtained from.
|
||||
|
||||
# The tags to use when fetching elements to build.
|
||||
# By default thebuilder will use whatever is in the maps.
|
||||
# This value takes the form of a comma separated list of repository identifier (like used in the map files) and the
|
||||
# overriding value
|
||||
# For example fetchTag=CVS=HEAD, SVN=v20050101
|
||||
# fetchTag=HEAD
|
||||
skipFetch=true
|
||||
|
||||
|
||||
############# JAVA COMPILER OPTIONS ##############
|
||||
# The location of the Java jars to compile against. Typically the rt.jar for your JDK/JRE
|
||||
#bootclasspath=${java.home}/lib/rt.jar
|
||||
|
||||
# specific JRE locations to compile against. These values are used to compile bundles specifying a
|
||||
# Bundle-RequiredExecutionEnvironment. Uncomment and set values for environments that you support
|
||||
#CDC-1.0/Foundation-1.0= /path/to/rt.jar
|
||||
#CDC-1.1/Foundation-1.1=
|
||||
#OSGi/Minimum-1.0=
|
||||
#OSGi/Minimum-1.1=
|
||||
#JRE-1.1=
|
||||
#J2SE-1.2=
|
||||
#J2SE-1.3=
|
||||
#J2SE-1.4=
|
||||
#J2SE-1.5=
|
||||
#JavaSE-1.6=
|
||||
#PersonalJava-1.1=
|
||||
#PersonalJava-1.2=
|
||||
#CDC-1.0/PersonalBasis-1.0=
|
||||
#CDC-1.0/PersonalJava-1.0=
|
||||
#CDC-1.1/PersonalBasis-1.1=
|
||||
#CDC-1.1/PersonalJava-1.1=
|
||||
|
||||
# Specify the output format of the compiler log when eclipse jdt is used
|
||||
logExtension=.log
|
||||
|
||||
# Whether or not to include debug info in the output jars
|
||||
javacDebugInfo=true
|
||||
|
||||
# Whether or not to fail the build if there are compiler errors
|
||||
javacFailOnError=true
|
||||
|
||||
# Enable or disable verbose mode of the compiler
|
||||
javacVerbose=true
|
||||
|
||||
# Extra arguments for the compiler. These are specific to the java compiler being used.
|
||||
compilerArg=-inlineJSR -enableJavadoc -encoding ISO-8859-1
|
||||
|
||||
# Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
|
||||
javacSource=1.5
|
||||
|
||||
# Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
|
||||
javacTarget=1.5
|
||||
|
||||
individualSourceBundles=true
|
161
icu4j/eclipse-build/pdebuild/customTargets.xml
Normal file
161
icu4j/eclipse-build/pdebuild/customTargets.xml
Normal file
@ -0,0 +1,161 @@
|
||||
<project name="Build specific targets and properties" default="noDefault">
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Run a given ${target} on all elements being built -->
|
||||
<!-- Add on <ant> task for each top level element being built. -->
|
||||
<!-- ===================================================================== -->
|
||||
<property name="allElementsFile" value="${builder}/allElements.xml"/>
|
||||
<import file="${allElementsFile}" />
|
||||
<target name="allElements">
|
||||
<antcall target="allElementsDelegator" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="getBaseComponents" depends="checkLocalBase" unless="skipBase">
|
||||
<get src="${eclipseBaseURL}" dest="${buildDirectory}/../temp-base.zip" />
|
||||
<unzip dest="${base}" overwrite="true" src="${buildDirectory}/../temp-base.zip" />
|
||||
</target>
|
||||
|
||||
<target name="checkLocalBase">
|
||||
<available file="${base}" property="skipBase" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Check out map files from correct repository -->
|
||||
<!-- Replace values for mapsCheckoutTag as desired. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps">
|
||||
<property name="mapsCheckoutTag" value="HEAD" />
|
||||
<cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" />
|
||||
</target>
|
||||
|
||||
<target name="checkLocalMaps">
|
||||
<available property="skipMaps" file="${buildDirectory}/maps" />
|
||||
</target>
|
||||
|
||||
<target name="tagMapFiles" if="tagMaps">
|
||||
<cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
|
||||
<target name="clean" unless="noclean">
|
||||
<antcall target="allElements">
|
||||
<param name="target" value="cleanElement" />
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
<target name="gatherLogs">
|
||||
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
|
||||
<antcall target="allElements">
|
||||
<param name="target" value="gatherLogs" />
|
||||
</antcall>
|
||||
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
|
||||
<fileset dir="${buildDirectory}/features">
|
||||
<include name="**/*.log.zip" />
|
||||
</fileset>
|
||||
</unzip>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before setup -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preSetup">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after setup but before starting the build proper -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postSetup">
|
||||
<antcall target="getBaseComponents" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before fetching the build elements -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preFetch">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after fetching the build elements -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postFetch">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before generating the build scripts. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preGenerate">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after generating the build scripts. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postGenerate">
|
||||
<antcall target="clean" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preProcess">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postProcess">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before running assemble. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preAssemble">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after running assemble. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postAssemble">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before running package. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="prePackage">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after running package. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postPackage">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after the build is done. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postBuild">
|
||||
<antcall target="gatherLogs" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do to test the build results -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="test">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do to publish the build results -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="publish">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Default target -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="noDefault">
|
||||
<echo message="You must specify a target when invoking this file" />
|
||||
</target>
|
||||
|
||||
</project>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.ibm.icu.tests</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,12 @@
|
||||
#Thu Dec 14 11:51:01 EST 2006
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.3
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore
|
||||
org.eclipse.jdt.core.compiler.source=1.3
|
@ -0,0 +1,3 @@
|
||||
#Thu Dec 14 11:51:01 EST 2006
|
||||
eclipse.preferences.version=1
|
||||
internal.default.compliance=default
|
@ -0,0 +1,11 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: ICU Test Fragment
|
||||
Bundle-SymbolicName: com.ibm.icu.tests
|
||||
Bundle-Version: 1.0.0
|
||||
Bundle-Vendor: IBM
|
||||
Fragment-Host: com.ibm.icu
|
||||
Bundle-Copyright: @COPYRIGHT@
|
||||
Require-Bundle: org.junit
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.3,
|
||||
CDC-1.0/Foundation-1.0
|
@ -0,0 +1,14 @@
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
./icu4jtests.jar,\
|
||||
.classpath,\
|
||||
bin/,\
|
||||
build.properties,\
|
||||
.project
|
||||
src.includes = src/,\
|
||||
build.properties,\
|
||||
.classpath,\
|
||||
.project,\
|
||||
META-INF/
|
@ -0,0 +1,159 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* Copyright (C) 2005-2008, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
******************************************************************************
|
||||
*/
|
||||
package com.ibm.icu.tests;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import com.ibm.icu.dev.test.TestAll;
|
||||
import com.ibm.icu.dev.test.TestFmwk;
|
||||
import com.ibm.icu.dev.test.TestFmwk.TestParams;
|
||||
|
||||
//import com.ibm.icu.text.DateFormat;
|
||||
//import com.ibm.icu.util.Calendar;
|
||||
//import com.ibm.icu.util.GregorianCalendar;
|
||||
//import com.ibm.icu.util.TimeZone;
|
||||
//import com.ibm.icu.util.ULocale;
|
||||
|
||||
public class UnitTest extends TestCase {
|
||||
|
||||
public void testBidi() throws Exception {
|
||||
runUtility("Bidi");
|
||||
}
|
||||
|
||||
public void testCalendar() throws Exception {
|
||||
runUtility("Calendar");
|
||||
}
|
||||
|
||||
public void testCollator() throws Exception {
|
||||
runUtility("Collator");
|
||||
}
|
||||
|
||||
public void testCompression() throws Exception {
|
||||
runUtility("Compression");
|
||||
}
|
||||
|
||||
public void testDuration() throws Exception {
|
||||
runUtility("Duration");
|
||||
}
|
||||
|
||||
public void testDiagBigDecimal() throws Exception {
|
||||
runUtility("DiagBigDecimal");
|
||||
}
|
||||
|
||||
public void testFormat() throws Exception {
|
||||
runUtility("Format");
|
||||
}
|
||||
|
||||
public void testImpl() throws Exception {
|
||||
runUtility("Impl");
|
||||
}
|
||||
|
||||
public void testNormalizer() throws Exception {
|
||||
runUtility("Normalizer");
|
||||
}
|
||||
|
||||
public void testProperty() throws Exception {
|
||||
runUtility("Property");
|
||||
}
|
||||
|
||||
public void testRBBI() throws Exception {
|
||||
runUtility("RBBI");
|
||||
}
|
||||
|
||||
public void testSearchTest() throws Exception {
|
||||
runUtility("SearchTest");
|
||||
}
|
||||
|
||||
public void testStringPrep() throws Exception {
|
||||
runUtility("StringPrep");
|
||||
}
|
||||
|
||||
public void testTestCharsetDetector() throws Exception {
|
||||
runUtility("TestCharsetDetector");
|
||||
}
|
||||
|
||||
public void testTestUCharacterIterator() throws Exception {
|
||||
runUtility("TestUCharacterIterator");
|
||||
}
|
||||
|
||||
public void testTimeScale() throws Exception {
|
||||
runUtility("TimeScale");
|
||||
}
|
||||
|
||||
public void testTimeZone() throws Exception {
|
||||
runUtility("TimeZone");
|
||||
}
|
||||
|
||||
public void testTranslit() throws Exception {
|
||||
runUtility("Translit");
|
||||
}
|
||||
|
||||
public void testUtil() throws Exception {
|
||||
runUtility("Util");
|
||||
}
|
||||
|
||||
public void runUtility(String testname) throws Exception {
|
||||
TestParams params = TestParams.create("-n", null);
|
||||
TestFmwk test = new TestAll();
|
||||
test.resolveTarget(params, testname).run();
|
||||
if (params.errorCount > 0) {
|
||||
fail(params.errorSummary.toString());
|
||||
}
|
||||
}
|
||||
|
||||
// sample tests from ICU4J test suite
|
||||
|
||||
// Calendar
|
||||
// public void testCalendarSimple() throws Exception {
|
||||
// TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");
|
||||
// GregorianCalendar gc = new GregorianCalendar(tz);
|
||||
// gc.set(2005,9,17,14,15,33);
|
||||
// Date time = gc.getTime();
|
||||
//
|
||||
// final String[] calendars = {
|
||||
// "buddhist", "chinese", "coptic", "ethiopic", "gregorian",
|
||||
// "hebrew", "islamic", "islamic-civil", "japanese"
|
||||
// };
|
||||
// final String[] ustimes = {
|
||||
// "Monday, October 17, 2548 BE 2:15:33 PM PDT",
|
||||
// "Monday 22x78-9-15 2:15:33 PM PDT",
|
||||
// "Monday, Baba 7, 1722 2:15:33 PM PDT",
|
||||
// "Monday, Tekemt 7, 1998 2:15:33 PM PDT",
|
||||
// "Monday, October 17, 2005 2:15:33 PM PDT",
|
||||
// "Monday, Tishri 14, 5766 2:15:33 PM PDT",
|
||||
// "Monday, Ramadan 14, 1426 2:15:33 PM PDT",
|
||||
// "Monday, Ramadan 14, 1426 2:15:33 PM PDT",
|
||||
// "Monday, October 17, 17 Heisei 2:15:33 PM PDT",
|
||||
// };
|
||||
// final String[] detimes = {
|
||||
// "Montag, Oktober 17, 2548 BE 2:15:33 nachm. GMT-07:00",
|
||||
// "Montag 22x78-9-15 2:15:33 nachm. GMT-07:00",
|
||||
// "Montag, 7. Baba 1722 14:15 Uhr GMT-07:00",
|
||||
// "Montag, 7. Tekemt 1998 14:15 Uhr GMT-07:00",
|
||||
// "Montag, 17. Oktober 2005 14:15 Uhr GMT-07:00",
|
||||
// "Montag, 14. Tishri 5766 14:15 Uhr GMT-07:00",
|
||||
// "Montag, 14. Ramadan 1426 14:15 Uhr GMT-07:00",
|
||||
// "Montag, 14. Ramadan 1426 14:15 Uhr GMT-07:00",
|
||||
// "Montag, Oktober 17, 17 Heisei 2:15:33 nachm. GMT-07:00",
|
||||
// };
|
||||
//
|
||||
// ULocale[] locales = {ULocale.US, ULocale.GERMANY };
|
||||
// String[][] times = { ustimes, detimes };
|
||||
// for (int j = 0; j < locales.length; ++j) {
|
||||
// ULocale ul = new ULocale("en_US");
|
||||
// for (int i = 0; i < calendars.length; ++i) {
|
||||
// ul = ul.setKeywordValue("calendar", calendars[i]);
|
||||
// Calendar cal = Calendar.getInstance(ul);
|
||||
// DateFormat fmt = cal.getDateTimeFormat(DateFormat.FULL, DateFormat.FULL, locales[j]);
|
||||
// String result = fmt.format(time);
|
||||
// System.out.println(calendars[i] + ": " + result);
|
||||
// if (!result.equals(times[j][i])) {
|
||||
// fail("calendar: " + calendars[i]);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
28
icu4j/eclipse-build/plugins.template/com.ibm.icu/.project
Normal file
28
icu4j/eclipse-build/plugins.template/com.ibm.icu/.project
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.ibm.icu</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,77 @@
|
||||
#Mon Aug 30 14:05:56 EDT 2010
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deadCode=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
|
||||
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
|
||||
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.nullReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
||||
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
||||
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
@ -0,0 +1,3 @@
|
||||
#Thu Dec 14 11:50:17 EST 2006
|
||||
eclipse.preferences.version=1
|
||||
internal.default.compliance=default
|
@ -0,0 +1,29 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: com.ibm.icu; singleton:=true
|
||||
Bundle-Version: @BUILD_VERSION@
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Localization: plugin
|
||||
Bundle-Copyright: @COPYRIGHT@
|
||||
Export-Package: com.ibm.icu.lang;base=true;full=true;version="@IMPL_VERSION@",
|
||||
com.ibm.icu.math;base=true;full=true;version="@IMPL_VERSION@",
|
||||
com.ibm.icu.text;base=true;full=true;version="@IMPL_VERSION@",
|
||||
com.ibm.icu.util;base=true;full=true;version="@IMPL_VERSION@",
|
||||
com.ibm.icu.impl;x-internal:=true,
|
||||
com.ibm.icu.impl.data;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.brkitr;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.coll;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.curr;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.lang;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.rbnf;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.region;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.translit;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.zone;x-internal:=true,
|
||||
com.ibm.icu.impl.duration;x-internal:=true,
|
||||
com.ibm.icu.impl.locale;x-internal:=true
|
||||
Eclipse-LazyStart: true
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||
Bundle-ClassPath: icu-data.jar,.
|
||||
Eclipse-ExtensibleAPI: true
|
@ -0,0 +1,19 @@
|
||||
###############################################################################
|
||||
# Copyright (c) 2000, 2008 IBM Corporation and others.
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
# Contributors:
|
||||
# IBM Corporation - initial API and implementation
|
||||
###############################################################################
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
src.includes = about.html,\
|
||||
about_files/
|
||||
bin.includes = .,\
|
||||
about.html,\
|
||||
about_files/,\
|
||||
plugin.properties,\
|
||||
META-INF/
|
@ -0,0 +1,12 @@
|
||||
###############################################################################
|
||||
# Copyright (c) 2000, 2008 IBM Corporation and others.
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
# Contributors:
|
||||
# IBM Corporation - initial API and implementation
|
||||
###############################################################################
|
||||
pluginName = International Components for Unicode for Java (ICU4J)
|
||||
providerName = IBM Corporation
|
Loading…
Reference in New Issue
Block a user