This document describes how to run the RbGenerator using the command line tool.
RbGenerator will process all properties files found in the specified
root directory and will generate a java source file in the
gendir directory for each properties file.
As all RbUtils command line tools, RbGenerator uses the common options.
Here are the RbGenerator specific options :
NOTE:
Run RbGenerator on all properties files of the root directory with the
properties
extension, generate Java ResourceBundle in the
/usr/myproject/gensrc
directory and use the plain logger (log error in the
console).
java org.ktc.rbutils.rb.generation.RbGeneratorCli -r /usr/myproject/src \ -g /usr/myproject/gensrc
Run RbGenerator on all files of the root directory with the props
extension
, generate Java ResourceBundle in the /usr/myproject/gensrc
directory, use a
plain logger (log error in the console) and a xml logger (log error in a xml file).
Note: do not forget the double quot when specifying the logging file if the path
contains spaces.
java org.ktc.rbutils.rb.generation.RbGeneratorCli -r /usr/myproject/src \ -g /usr/myproject/gensrc \ -e props \ -l plain \ -l xml;"C:\projects\My Rb tool\rbgenerator.xml"
Run RbGenerator on 2 files of the root directory, generate the 2 Java ResourceBundle in
the /usr/myproject/gensrc
directory and use a quiet logger.
java org.ktc.rbutils.rb.generation.RbGeneratorCli -r /usr/myproject/src \ -g /usr/myproject/gensrc -l quiet \ -f com/compagny/extended/myr2b.xrb \ -f com/compagny/myrb.properties \ -l quiet