Package org.appng.xml

Class ApplicationPropertyConstantCreator


  • public class ApplicationPropertyConstantCreator
    extends Object
    • Constructor Detail

      • ApplicationPropertyConstantCreator

        public ApplicationPropertyConstantCreator()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws IOException,
                                JAXBException
        Generates a .java file containing constants for all the Properties defined in the given application.xml. Tries to read the name and the version from pom.xml that should be located two folders above (../../) of the application.xml.
        Parameters:
        args - args[0] - the path to application.xml (required)
        args[1] - the fully qualified name of the target class to generate (required)
        args[2] - the output-folder for the generated class (required)
        args[3] - a prefix for the name of the generated constants (optional)
        Throws:
        IOException - if the file can not be found or the target class can not be written
        JAXBException - if the file can not unmarshalled
        IllegalArgumentException - if one of the parameters is missing