root Jar
fun rootJar( name: String, jarFileName: String, availModuleExtensions: List<String> = listOf("avail"), entryPoints: List<String> = listOf(), description: String = "", initializer: (AvailRoot) -> Unit = {})
Content copied to clipboard
Add an Avail root with the provided name and URI.
There is no need to prefix the file scheme, file://, if it exists on the local file system; otherwise the scheme should be prefixed.
Parameters
name
The name of the root to add.
jar File Name
The jar's File.getName.
avail Module Extensions
The file extensions that signify files that should be treated as Avail modules.
entry Points
The Avail entry points exposed by this root.
description
An optional description of this root.
initializer
A lambda that accepts the created AvailRoot and is executed after all roots have been added.