From 2f00e0732e1ca32b3bd8d6b3b350c781ace4fa40 Mon Sep 17 00:00:00 2001 From: Howard Yun Date: Sun, 17 Oct 2021 16:01:52 -0400 Subject: [PATCH] kotlinc: add page (#7006) --- pages/common/kotlinc.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/kotlinc.md diff --git a/pages/common/kotlinc.md b/pages/common/kotlinc.md new file mode 100644 index 0000000000..96f705bd58 --- /dev/null +++ b/pages/common/kotlinc.md @@ -0,0 +1,24 @@ +# kotlinc + +> Kotlin compiler. +> More information: . + +- Start a REPL (interactive shell): + +`kotlinc` + +- Compile a Kotlin file: + +`kotlinc {{path/to/file.kt}}` + +- Compile several Kotlin files: + +`kotlinc {{path/to/file1.kt path/to/file2.kt ...}}` + +- Execute a specific Kotlin Script file: + +`kotlinc -script {{path/to/file.kts}}` + +- Compile a Kotlin file into a self contained jar file with the Kotlin runtime library included: + +`kotlinc {{path/to/file.kt}} -include-runtime -d {{path/to/file.jar}}`