public static native addSourceRoot(path as String) as Boolean throws IOException
Adds a source root to the active runtime class path.
Existing compile units and JIT objects remain loaded. Only class lookup indexes derived from the class path are refreshed.
| Parameter | Description |
|---|---|
path | Existing directory containing Klyn sources. |
true when the root was newly added, otherwise false.
import klyn.io
ClassLoader.addSourceRoot(FolderPath("plugins/example/src").toString())