--- /dev/null
+#*******************************************************************************\r
+#* Copyright (C) 2014, International Business Machines Corporation and *\r
+#* others. All Rights Reserved. *\r
+#*******************************************************************************\r
+\r
+#\r
+# Eclipse installation location\r
+# Specify the folder that contains eclipse.exe, for example: eclipse.home=C:/eclipse\r
+#\r
+# Note:\r
+# By default, this value is set by an environment variable 'ECLIPSE_HOME'.\r
+# You could uncomment below and specify the path in this file alternatively (recommended). \r
+#\r
+#eclipse.home=\r
+\r
+#\r
+# Java 5 runtime jar location\r
+# Specify jar file path(es) including J2SE runtime classes\r
+#\r
+# Note: \r
+#\r
+# [Oracle JDK] All of J2SE runtime classes are in <JRE dir>/lib/rt.jar\r
+#\r
+# [IBM JDK] J2SE runtime classes are in multiple jar files. To build ICU4J\r
+# plug-in, you need followings:\r
+# - <JRE dir>/lib/vm.jar\r
+# - <JRE dir>/lib/core.jar\r
+# - <JRE dir>/lib/graphics.jar\r
+# - <JRE dir>/lib/xml.jar\r
+#\r
+# For example: java.rt=C:/ibmjava5/jre/lib/vm.jar;C:/ibmjava5/jre/lib/core.jar;C:/ibmjava5/jre/lib/graphics.jar;C:/ibmjava5/jre/lib/xml.jar\r
+#\r
+java.rt=\r
<!--
/*
*******************************************************************************
-* Copyright (C) 2010-2013, International Business Machines Corporation and *
+* Copyright (C) 2010-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
-->
<project name="icu4j-eclipse" default="build" basedir=".">
+ <property file="build-local.properties"/>
<property file="build.properties"/>
<property name="out.dir" value="out"/>
</target>
<target name="build"
- depends="initEnv,icuProjectFiles,icuTestsProjectFiles,icuBaseProjectFiles,icuBaseTestsProjectFiles"
+ depends="checkProps,initEnv,icuProjectFiles,icuTestsProjectFiles,icuBaseProjectFiles,icuBaseTestsProjectFiles"
description="Build icu4j plug-ins">
<!-- copy OSGi jar file to baseLocation -->
</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="checkProps" depends="initEclipseHome">
+ <fail message="Eclipse home (eclipse.home or env.ECLIPSE_HOME) is not set">
+ <condition>
+ <or>
+ <equals arg1="${eclipse.home}" arg2=""/>
+ <not>
+ <isset property="eclipse.home"/>
+ </not>
+ </or>
+ </condition>
+ </fail>
+ <fail message="Java runtime jar path (java.rt) is not set">
+ <condition>
+ <or>
+ <equals arg1="${java.rt}" arg2=""/>
+ <not>
+ <isset property="java.rt"/>
+ </not>
+ </or>
+ </condition>
+ </fail>
+ </target>
+
<target name="initPluginVersion">
<tstamp>
<format property="build.date" pattern="yyyyMMdd"/>
</target>
<target name="initEnv"
- depends="initEclipseHome,initEclipseLauncher,initEclipseOSGiJar,initEclipsePDE"
+ depends="checkProps,initEclipseLauncher,initEclipseOSGiJar,initEclipsePDE"
description="Initialize eclipse PDE build environment">
<echo message="[PDE build configuration properties]"/>
<echo message=" Eclipse home: ${eclipse.home}"/>
<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">
<filter token="BASE_OS" value="${eclipse.baseos}"/>
<filter token="BASE_WS" value="${eclipse.basews}"/>
<filter token="BASE_ARCH" value="${eclipse.basearch}"/>
+ <filter token="JAVA_RT" value="${java.rt}"/>
</filterset>
</copy>
<fileset dir="${icu4j.core-tests.dir}/src"/>
<fileset dir="${icu4j.collate-tests.dir}/src"/>
<fileset dir="${icu4j.translit-tests.dir}/src"/>
- <fileset dir="${icu4j.testall.dir}/src"/>
</copy>
<!-- icu test data -->