> AJCT Project > Home > Usage > Configuration targets |
|
AJCT – AnotherJava Configuration Tool – Configuration TargetsIntroductionIdealy, all components of your java application use AJCT. If you are reusing third party components, this will not be the case. AJCT provides a mechanism to indirectly achieve this: configuration targets (or 'writers'). A configuration target exports (part of) the configuration in another format. Currently, the following targets are supported without custom extensions:
Only XML sources support configuration targets (via the 'export' element). System properties configuration target (type=system)The System properties configuration target exports a section of the configuration to the system properties.
If the XML configuration source would contain the following lines:
then the following call System.getProperty("org.otherapp.debug") will return 'true'. Java properties file configuration target (type=properties)The java properties file configuration target exports a section of the configuration as a java properties file on the local file system.
If the XML configuration source would contain a the following lines:
then the file 'export.properties' might contain the following lines:
|
This file was last modified