public class KEYSFileGenerator
extends java.lang.Object
args:
REQUIRED absolute path to the properties file to process.
Examples:
REQUIRED path to the directory in which to write the new Java Class file.
Example:
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:
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:
Putting it all together for some sample invocations:
java org.safs.text.KEYSFileGenerator -properties D:\workspace\RftDevJ\org\safs\SAFSTextResourceBundle_en_US.properties -out D:\workspace\RftDevJ\ java org.safs.text.KEYSFileGenerator -properties D:\workspace\RftDevJ\org\safs\SAFSTextResourceBundle_en_US.properties -out D:\workspace\RftDevJ\ -package org.safs.text java org.safs.text.KEYSFileGenerator -properties D:\workspace\RftDevJ\org\safs\SAFSTextResourceBundle_en_US.properties -out D:\workspace\RftDevJ\ -package org.safs.text -name SAFSTextResourceBundle java org.safs.text.KEYSFileGenerator -properties D:\workspace\RftDevJ\org\safs\failedSAFSTextResourceBundle_en_US.properties -out D:\workspace\RftDevJ\ -package org.safs.text -name failedSAFSTextResourceBundle
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
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TAB_NUMBER
the number of tabs from the beginning of a line before the equal sign, here we give 18.
|
static java.lang.String |
paramName |
static java.lang.String |
paramOut |
static java.lang.String |
paramPackage |
static java.lang.String |
paramPropertyFile |
static int |
TAB_LENGTH
the number of space that a Tabulation represents, it is normally 4 in java source code.
|
static java.lang.String |
usage |
Constructor and Description |
---|
KEYSFileGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
public static final java.lang.String paramPropertyFile
public static final java.lang.String paramOut
public static final java.lang.String paramName
public static final java.lang.String paramPackage
public static final java.lang.String usage
public static final int TAB_LENGTH
public static final int DEFAULT_TAB_NUMBER
Copyright © SAS Institute. All Rights Reserved.