rootJar

fun rootJar(    name: String,     jarFileName: String,     availModuleExtensions: List<String> = listOf("avail"),     entryPoints: List<String> = listOf(),     description: String = "",     initializer: (AvailRoot) -> Unit = {})

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.

jarFileName

The jar's File.getName.

availModuleExtensions

The file extensions that signify files that should be treated as Avail modules.

entryPoints

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.