Creating the resource JAR and recreating the EAR package for client-side literals

Post-localization, create the resource JAR and recreate the smcfs.ear file for client-side literals on Windows and Linux/UNIX.

About this task

After you have localized the client-side bundles, perform the following steps:

Procedure

  1. Navigate to the <INSTALL_DIR>/bin folder:
  2. To generate localized JavaScript source files from the localized bundle-index.properties file, run the following command:
    Note: Ensure that the directory <INSTALL_DIR> is set as an environment variable.

    ant -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbi/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbi/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sbi/localization_index/bundle-index_<language>_<locale>.properties -Dwebcontentdepth=0

    where -Dindexdir is the output directory.

    For example, if you have localized for the French locale, and the localization directory is <INSTALL_DIR>/repository/eardata/sbi/localization_index, and the localized bundle-index file is bundle-index_fr_FR.properties, run the following command:

    ant -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbi/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbi/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sbi/localization_index/bundle-index_fr_FR.properties -Dwebcontentdepth=0

    where -Dindexdir is the output directory.

  3. To generate minified JavaScript source files from the localized bundle-index.properties file, run the following command:

    ant -f jsUtil.xml minify-js -DsrcDir=<INSTALL_DIR>/repository/eardata/sbi/war -DdestDir=<INSTALL_DIR>/repository/eardata/sbi/war -Dminify=true -DcreateIndividualFile=false -DjsbDir=<INSTALL_DIR>/repository/eardata/sbi/war/builder/sbi

  4. Re-create the smcfs.ear file. This file is the IBM® Sterling Order Management System Software EAR package.

    For more information about creating the EAR file, refer to the Installing topic.

    Note: After localizing the application, you may want to verify that the application has been localized. However, because resource bundles are cached in a Web browser, it is recommended that you clear the Web cache before verifying the localization.