klyn.ClassLoader.addSourceRoot
method

    public static native addSourceRoot(path as String) as Boolean throws IOException

Description

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.

Parameters

Parameter | Description
--- | ---
`path` | Existing directory containing Klyn sources.

Returns

`true` when the root was newly added, otherwise `false`.

Throws

- IOException if the path does not identify an existing directory.

Example

    import klyn.io

    ClassLoader.addSourceRoot(FolderPath("plugins/example/src").toString())