Package org.appng.xml
Class ApplicationPropertyConstantCreator
- java.lang.Object
-
- org.appng.xml.ApplicationPropertyConstantCreator
-
public class ApplicationPropertyConstantCreator extends Object
-
-
Constructor Summary
Constructors Constructor Description ApplicationPropertyConstantCreator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Generates a .java file containing constants for all theProperties
defined in the givenapplication.xml
.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException, JAXBException
Generates a .java file containing constants for all theProperties
defined in the givenapplication.xml
. Tries to read the name and the version frompom.xml
that should be located two folders above (../../
) of theapplication.xml
.- Parameters:
args
- args[0] - the path toapplication.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 writtenJAXBException
- if the file can not unmarshalledIllegalArgumentException
- if one of the parameters is missing
-
-