Liberty: Generating Liberty configurations schema from the command line
Use the ws-schemagen.jar tool that is in the installation's bin/tools directory to generate the schema for Liberty core and other installed products extensions in a single output file.
Syntax
The command syntax is as follows:
java [JVM options] -jar ws-schemagen.jar [options] outputFileOptions
The following options are available:
- --encoding=charset
- Where charset is the character set to use when you are creating the output file.
- --ignorePidsFile=fileName
- Where fileName is the name of the file name that contains a list of pids to ignore.
- --locale=language
- Where language specifies the language to use when you are creating the output file. This string consists of the ISO-639 two-letter lowercase language code, optionally followed by and underscores and the ISO-3166 uppercase two-letter country code.
Usage examples
The following example generates
the installed products' schema and stores in a file called schema.xsl:
java -jar ws-schemagen.jar schema.xsl
The
following example generates the installed products' schema and stores
in a file that is called schema.xsl using the
Brazilian Portuguese language:
java -jar ws-schemagen.jar schema.xsl --locale=pt_BR
The
following example displays help information:
java -jar ws-schemagen.jar --help