StigRepoDir

data class StigRepoDir(val name: String, val rootDir: File) : Serializable

A resolved repo directory. Obtained in per-module build.gradle.kts via repos["sourceRepo"] or val sourceRepo by repos. Wraps the repo name (for metadata/display) and the eagerly resolved root directory (for file resolution).

The / operator produces a StigRepoFile:

val sourceRepo by repos          // StigRepoDir
topicsFile = sourceRepo / "activities/foo/topics.json" // StigRepoFile

Constructors

Link copied to clipboard
constructor(name: String, rootDir: File)

Properties

Link copied to clipboard

Repo name (must match a repo("...") declared in root build.gradle.kts).

Link copied to clipboard

Resolved root directory of this repo on disk.

Functions

Link copied to clipboard
operator fun div(relativePath: String): StigRepoFile

Creates a resolved file reference within this repo.

Link copied to clipboard
fun pattern(regex: String): String

Creates a repo-relative regex pattern string for provenanceBuild { }. Unlike div, this does not validate for filesystem-illegal characters because the result is a regex pattern, not a concrete file path.

Link copied to clipboard
open override fun toString(): String