org.appng.xml

## Class ApplicationPropertyConstantCreator

- java.lang.Object
- - org.appng.xml.ApplicationPropertyConstantCreator

-     public class ApplicationPropertyConstantCreator
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApplicationPropertyConstantCreator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(String[] args)` Generates a .java file containing constants for all the `Properties` defined in the given `application.xml`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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

Copyright © 2011–2023 aiticon GmbH. All rights reserved.