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.
  • "server" use the old Lucee xml on a upgraded Lucee 5 server context directory
  • "web" use the old Lucee xml on a upgraded Lucee 5 current web context directory  
  • target string  No   - Path to write out the translated Lucee CFConfig.json
  • "server" write out CFConfig.json to the server context directory
  • "web" write out CFConfig.json to the current web context directory  
  • 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.