public class PropertyConstantCreator extends Object
Constructor and Description |
---|
PropertyConstantCreator() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Generates a .java file containing constants for all the keys defined in the given property-file.
|
public static void main(String[] args) throws IOException
PropertyConstantCreator .main(new String[] { "path/to/file.properties", "org.appng.example.Constants", "target/constants" })
args
- args[0]* - the path to the property file to useSystem.getProperty("file.encoding")
IOException
- if the property file can not be found or the target class can not be writtenIllegalArgumentException
- if one of the parameters is missingCopyright © 2011–2020 aiticon GmbH. All rights reserved.