Lucee Function Reference
configtranslate()
translate an old Lucee XML configuration to the new CFConfig.json configuration
Example
configtranslate(string source,[string target,[string type,[string mode,[string charset]]]]):struct
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
source | string | Yes |
- Path to the Lucee XML file (lucee-server.xml or lucee-web.xml.cfm) file or the data itself as a String. |
|
target | string | No |
- Path to write out the translated Lucee CFConfig.json |
|
type | string | No | server | Config Context to manipulate, server or web context. |
mode | string | No | Only used when type is set to [server], should be the resulting json set for single or multi mode. | |
charset | string | No | charset to use to read the XML file, if not defined, Lucee will use the default resource charset. |