File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed
docs/03.reference/01.functions Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ ``` luceescript
2+
3+ // Import Lucee Server configuration to CFConfig JSON format
4+ data = {
5+ "extensions": [
6+ {
7+ "id": "EFDEB172-F52E-4D84-9CD1-A1F561B3DFC8",
8+ "name": "Lucene Search",
9+ "version": "2.4.2.4"
10+ }
11+ ]
12+ };
13+ writeDump(ConfigImport(data, "server", "lucee_password"));
14+
15+ ```
16+
17+ ``` luceescript
18+
19+ // Import Lucee Server configuration from a .CFConfig JSON file
20+ writeDump(ConfigImport("path/to/.CFConfig.json", "server", "lucee_password"));
21+
22+ ```
Original file line number Diff line number Diff line change 1+ ``` luceescript
2+
3+ //Translate Lucee Server XML configuration to .CFConfig JSON format
4+ configResult = configTranslate(
5+ source = "C:/lucee_old/tomcat/lucee-server/context/lucee-server.xml.cfm",
6+ target = "C:/lucee_new/tomcat/lucee-server/context/.CFConfig.json",
7+ type = "server",
8+ mode = "single"
9+ );
10+ writeDump(configResult);
11+
12+ ```
Original file line number Diff line number Diff line change 1- * There are currently no examples for this function.*
1+ ``` luceescript
2+
3+ excelApp = CreateObject("com", "Excel.Application"); // Created Excel Application COM object
4+ workbook = excelApp.Workbooks.Add();
5+ ReleaseComObject(workbook); //released excelApp to prevent memory leak
6+
7+ ```
You can’t perform that action at this time.
0 commit comments