Mercurial Hosting > editor
annotate src/luan_editor/Java.luan @ 81:a873ccf6d4cd
elvish
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Mon, 23 Jun 2025 03:45:13 -0600 |
| parents | 7f5b3824f4d4 |
| children |
| rev | line source |
|---|---|
| 53 | 1 local Luan = require "luan:Luan.luan" |
| 2 local error = Luan.error | |
| 3 require "java" | |
| 4 local System = require "java:java.lang.System" | |
| 5 | |
| 6 | |
| 7 local Java = {} | |
| 8 | |
| 75 | 9 local home_dir = System.getProperty("user.home") or error() |
| 10 Java.config_path = System.getProperty("config") or home_dir.."/.luan_editor/config.json" | |
| 53 | 11 |
| 12 Java.port = System.getProperty("port") | |
| 13 | |
| 14 return Java |
