configTranslate()

translate an old Lucee XML configuration to the new JSON configuration

Introduced: 6.0.0.460

configTranslate( source=string, target=string, type=string, mode=string, charset=string );

Returns: Struct

Argument Description Default
source
string, required

Path to the Lucee XML file (lucee-server.xml or lucee-web.xml.cfm) file or the data itself as a String.

Alias: data, input

target
string, optional

Path to the Lucee XML file (lucee-server.xml or lucee-web.xml.cfm) file or the data itself as a String.

Alias: output

type
string, optional

Config Context to manipulate, server or web context.

server

mode
string, optional

Only used when type is set to [server], should be the resulting json set for single or multi mode.

charset
string, optional

charset to use to read the XML file, if not defined, Lucee will use the default resource charset.

Examples

There are currently no examples for this function 12,367ms WARN No examples for function configtranslate

See also