L10ngen utility, Syntax, L10ngen utility -5 – BEA WebLogic Server User Manual

Page 55: Syntax -5

Advertising
background image

l10ngen Utility

Internationalization Guide

4-5

l10ngen Utility

The

l10ngen

utility processes the locale-specific catalogs in directories that are

subordinate to the top-level catalogs.

Syntax

java -classpath <l10n_Classpath> weblogic.i18ntools.l10ngen
[options] filelist

where

<l10n_Classpath>

should include

<WebLogic

Home>/lib/weblogic.jar

-i18n

Creates the internationalizer source (for example,

*Logger.java

) that supports the logging of

internationalized messages.

-l10n

Creates the localizer source (property resource bundles)
that provides access to each message defined in each
message catalog. These properties are used by
localization utilities to localize messages.

-compile

Compiles generated Java files using the current
CLASSPATH. The resulting classes are placed in the
directory identified by the -d option. Errors detected
during compilation generally result in no class files or
properties file being created. i18ngen exits with a bad
exit status.

-nobuild

Parse and validate only

files

Process the files and directories in this list of files. If
directories are listed, the command processes all XML
files in the listed directories. The names of all files must
include an XML suffix. All files must conform to the

msgcat.dtd

syntax.

i18ngen

prints the

fully-qualified list of names (Java source) to the

stdout

log for those files actually generated.

Advertising