Using RbContentLister

Note: as RbUtils 0.11, we provide a basic tool; command line arguments may change in the future.
It does not use the common options shared by all RbUtils command line tools.

This page describes how to use the RbContentLister command line tool.
This tool displays the content of a ResourceBundle in the standard output.


The easiest way is to include rbutils-all-0.13.jar in the classpath.
For more information, see the Using RbUtils Tools.
Do not forget to include the ResourceBundle to be loaded.

Exit Value

The utility exits with the number of detected errors.
Its also exits with -1 if a parsing problem occurs.


The command line usage is (optionnal arguments are between []):

java org.ktc.rbutils.rb.content.RbContentLister \
     <classname> \

Do not forget the classpath


List content of the RbUtils info bundle (launch from RbUtils root project directory, using Win32 classpath separator):

java -cp build;lib/rbutils.jar;lib/commons-io.jar;lib/commons-lang.jar;lib/commons-cli.jar \
     org.ktc.rbutils.rb.content.RbContentListerUtility org.ktc.rbutils.rbutilsInfos en_CA

This will display something like this:

    Running RbContentLister 0.11-SNAPSHOT-02 (10 July 2007) on Tue Jul 10 11:27:45 CEST 2007
    ResourceBundle org.ktc.rbutils.rbutilsInfos
    Locale {}
      rbutils.homepage: [java.lang.String]
      rbutils.timestamp: 10 July 2007 [java.lang.String]
      rbutils.version: 0.11-SNAPSHOT-02 [java.lang.String]
    Errors: 0