2 rem *******************************************************************************
\r
3 rem * Copyright (C) 2007-2008 International Business Machines Corporation and *
\r
4 rem * others. All Rights Reserved. *
\r
5 rem *******************************************************************************
\r
8 @echo *********** Welcome to the ICU4J Time Zone Update Utility (ICUTZU) ***********
\r
10 rem Set ICUTZU_HOME to the current directory.
\r
11 set ICUTZU_HOME=%~dp0
\r
12 @echo ICUTZU Home: %ICUTZU_HOME%
\r
15 rem Make sure certain files are present.
\r
16 IF NOT EXIST "%ICUTZU_HOME%icutzu.jar" GOTO MissingICUTZUJAR
\r
17 IF NOT EXIST "%ICUTZU_HOME%icu4j.jar" GOTO MissingICU4JJAR
\r
18 IF NOT EXIST "%ICUTZU_HOME%runicutzuenv.bat" GOTO MissingICUTZUENV
\r
20 rem Set environmental variables.
\r
21 call "%ICUTZU_HOME%runicutzuenv.bat"
\r
22 IF NOT EXIST "%JAVA_HOME%\bin\java.exe" GOTO MissingJAVAHOME
\r
24 rem Create a temporary directory if one doesn't exit already.
\r
25 IF EXIST "%ICUTZU_HOME%Temp" GOTO TempAlreadyExists
\r
26 mkdir "%ICUTZU_HOME%Temp"
\r
31 rem Run the ICUTZU tool.
\r
33 @echo Launching the ICU4J Time Zone Update Utility (ICUTZU)...
\r
34 @echo "%JAVA_HOME%\bin\java.exe" -cp "%ICUTZU_HOME%icutzu.jar" -Dnogui=%NOGUI% -Ddiscoveronly=%DISCOVERONLY% -Dsilentpatch=%SILENTPATCH% -Doffline=%OFFLINE% com.ibm.icu.dev.tool.tzu.ICUTZUMain "%ICUTZU_HOME%\" DirectorySearch.txt ICUList.txt zoneinfo.res Temp icu.gif
\r
36 "%JAVA_HOME%\bin\java.exe" -cp "%ICUTZU_HOME%icutzu.jar" -Dnogui=%NOGUI% -Ddiscoveronly=%DISCOVERONLY% -Dsilentpatch=%SILENTPATCH% -Doffline=%OFFLINE% com.ibm.icu.dev.tool.tzu.ICUTZUMain "%ICUTZU_HOME%\" DirectorySearch.txt ICUList.txt zoneinfo.res Temp icu.gif
\r
37 IF ERRORLEVEL==0 GOTO Success
\r
43 @echo The ICU4J Time Zone Update Utility (icutzu.jar) doesn't exist in %ICUTZU_HOME%.
\r
47 @echo ICU for Java (icu4j.jar) doesn't exist in %ICUTZU_HOME%.
\r
51 @echo runicutzuenv.bat file doesn't exist in %ICUTZU_HOME%.
\r
55 @echo java.exe does not exist in %JAVA_HOME%\bin. Please update the JAVA_HOME enviroment variable in runicutzuenv.bat
\r
60 @echo End of ICU4J Time Zone Update Utility (ICUTZU) completed successfully.
\r
65 @echo ICU4J Time Zone Update Utility (ICUTZU) did not complete successfully.
\r