Profile

sealed class Profile

Configuration profiles.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class BuiltIn(val name: String) : Configuration.Profile

A builtin profile provided by the Grader, in the form of config.<profile>.properties in the resources directory.

Link copied to clipboard
object Companion
Link copied to clipboard

The default profile defined in config.properties.

Link copied to clipboard
data class External(val path: Path) : Configuration.Profile

An external profile loaded from a filesystem location.

Properties

Link copied to clipboard
protected abstract val activeDir: Path

The active directory when using this profile.

Functions

Link copied to clipboard
abstract fun newInputStream(): InputStream?

Creates a new InputStream to read from the configuration file.

Link copied to clipboard
fun resolveActive(relPath: Path): Path

Resolves relPath against the active directory of this profile. Does nothing if relPath is an absolute path.