Skip navigation links
org.safs.text

Class KEYSFileGenerator

args:

-properties <pathTo>/resource.properties

REQUIRED absolute path to the properties file to process.

Examples:

    -properties "D:\workspace\RftDevJ\org\safs\SAFSTextResourceBundle_en_US.properties"

-out OutputDirectory

REQUIRED path to the directory in which to write the new Java Class file.

Example:

    -out "D:\workspace\RftDevJ\"

-name classname

OPTIONAL Alternate name to give the generated java class. When not specified, the resource-bundle-name will be used. There are exceptions for historical reason, if the resource-bundle-name is "failedSAFSTextResourceBundle", the class name is "FAILKEYS"; and if resource-bundle-name is "SAFSTextResourceBundle", the class name is "GENKEYS".

Example:

    -name ResourceKeys
    -name ResourceFailKeys

-package JavaPackageName

OPTIONAL package name to use for the output Java Class file. When not specified, no package name is written. The class is part of the nameless (default) Java package.

Example:

    -package "org.safs.text"

Putting it all together for some sample invocations:

It is possible that we call this class without any parameter, it will generate java key class for 2 .properties files (failedSAFSTextResourceBundle_en_US.properties and SAFSTextResourceBundle_en_US.properties under package org.safs), the 2 generated java files will be org.safs.text.FAILKEYS and org.safs.text.GENKEYS

Skip navigation links

Copyright © SAS Institute. All Rights Reserved.