123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- @echo off
- rem
- rem Licensed Materials - Property of IBM
- rem IBM Cognos Products: localizationkit
- rem © Copyright IBM Corp. 2005, 2020
- rem US Government Users Restricted Rights - Use, duplication or disclosure restricted
- rem by GSA ADP Schedule Contract with IBM Corp.
- rem
- rem ---------------------------------------------------------------------------
- rem Script (Windows) to invoke jre and launch localization kit.
- rem
- rem J_HOME is the location of the Java RE installation
- rem J_OPTS are the Java options to be passed into the JAVA VM (optional)
- rem ---------------------------------------------------------------------------
- rem ----- Save Environment Variables That May Change --------------------------
- set _CLASSPATH=%CLASSPATH%
- set _CP=%CP%
- rem ------------------- Set JRE Home -----------------------------------------
- if "%JAVA_HOME%" == "" set JAVA_HOME=..\jre
- if exist %JAVA_HOME%\bin\java.exe goto okJRE
- echo Could not find jre in your environment.
- echo This environment variable JAVA_HOME is needed to run this program
- echo Hint:Please use Progra~1 instead of "Program Files" in your JAVA_HOME path
- goto cleanup
- :okJRE
- set J_HOME=%JAVA_HOME%
- set J_OPTS=-Xmx768m
- rem ----- Prepare Appropriate Java Execution Commands -------------------------
- set _RUNJAVA=%J_HOME%\bin\java
- rem ----------- Set Up The Runtime Classpath ----------------------------------------
- rem set CP for general processing
- set CP=.;localizationkit.jar;localizationkitExt.jar;dom4j-2.1.1.jar;jaxen-1.1.1.jar;jdxslt.jar
- rem ----- Execute The Requested Command ---------------------------------------
- if "%1" == "sync" goto lockit_sync
- if "%1" == "validate" goto lockit_validate
- if "%1" == "generate" goto lockit_generate
- if "%1" == "clean" goto lockit_clean
- if "%1" == "genbrandldkspec" goto lockit_genbrandldkspec
- echo Unknown command parameter is specified
- echo Usage: localize command
- echo Where command could be one of the following
- echo genbrandldkspec
- echo generate a brand_ldkspec.xml file to identify brandable resources only
- echo sync
- echo synchronzize XML message files
- echo validate
- echo validate XML message files
- echo generate
- echo generate target message files
- echo clean
- echo remove translate attribute from message files in synchronization directory
- goto cleanup
- :lockit_sync
- :lockit_validate
- :lockit_clean
- :lockit_genbrandldkspec
- set CLASSPATH=%CP%
- %_RUNJAVA% %J_OPTS% com.cognos.localizationkit.CCLMsgLocalizer %1
- goto cleanup
- :lockit_generate
- echo Generating is called
- set CLASSPATH=%CP%
- %_RUNJAVA% %J_OPTS% com.cognos.localizationkit.CCLMsgLocalizer %1
- goto cleanup
- rem ----- Restore Environment Variables ---------------------------------------
- :cleanup
- set CLASSPATH=%_CLASSPATH%
- set _CLASSPATH=
- set CP=%_CP%
- set _RUNJAVA=
- set J_HOME=
- :finish
- pause
|