Custom configuration
WDT allows you to create or extend the pre-installed type definitions, model filters, variable injectors, and target environments. Starting with WDT 1.10.0, these additional configuration files can be stored outside the $WLSDEPLOY_HOME/lib directory. This allows the files to remain in place if the WDT installation is moved or upgraded to a new version.
To use a separate configuration directory, set the WDT_CUSTOM_CONFIG environment variable to the directory to be used for configuration. For example:
The customized configuration files should be named and organized the same way they would be under the $WLSDEPLOY_HOME/lib directory. For example:
This is a full set of files that can be configured. You will need only to add the files you have created or extended. Details for each configuration type are found at:
- Tool property file
- Model filters
- Type definitions (See the following Extending a type definition example.)
- Variable injectors
- The Prepare Model Tool; see Target environments.
The WDT tools will look for each configuration file under $WDT_CUSTOM_CONFIG if specified, then under $WLSDEPLOY_HOME/lib.
Example: Extending a type definition
To extend the WLS type definition, follow these steps:
- Create a directory to use for custom configurations, such as
/etc/wdtconfig. - Define the
WDT_CUSTOM_CONFIGenvironment variable to point to that directory. - Copy the file
$WLSDEPLOY_HOME/lib/typedefs/WLS.jsonto the$WDT_CUSTOM_CONFIG/typedefsdirectory and rename it, for exampleMY_WLS.json. - Edit
MY_WLS.jsonwith any required changes. - Run the tool referencing the name of the new type definition, for example: