JextractStore

abstract class JextractStore @Inject constructor(fileSystem: FileSystemOperations, archives: ArchiveOperations, execOperations: ExecOperations) : BuildService<JextractStore.Parameters> (source)

Constructors

Link copied to clipboard
@Inject
constructor(fileSystem: FileSystemOperations, archives: ArchiveOperations, execOperations: ExecOperations)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Installation(val root: Path, val executable: Path, val version: Int)
Link copied to clipboard
interface Parameters : BuildServiceParameters
Link copied to clipboard
data class RemoteInstallation(val resource: DownloadClient.Resource, val archive: Path, val installation: JextractStore.Installation)

Functions

Link copied to clipboard
fun exec(root: Path, action: Action<in ExecSpec>): ExecResult

Executes Jextract installed in a custom path with a configurable action

fun exec(javaLanguageVersion: JavaLanguageVersion, action: Action<in ExecSpec>): ExecResult

Executes Jextract for a given Java version with a configurable action

Link copied to clipboard
fun version(path: Path): Int

Returns the version of a given local installation, null if this is not installed

fun version(javaLanguageVersion: JavaLanguageVersion): Int

returns the Jextract version for a given Java language version