koblas

BundledNativeResources

class BundledNativeResources(directoryPrefix: String, platform: String, resourceRoot: String, anchor: Class<*>, libraryDescription: String)(source)

Shared extraction support for optional JVM artifacts that bundle native Maven resources.

Constructors

BundledNativeResources

constructor(directoryPrefix: String, platform: String, resourceRoot: String, anchor: Class<*>, libraryDescription: String)(source)

Types

Link copied to clipboard
object Companion

Platform detection and the manifest-driven bundle shared by bundled artifacts.

Functions

extract

fun extract(names: Iterable<String>, required: Boolean = false): Map<String, Path>(source)

Extracts names into a private directory. A name this bundle does not carry is skipped, or fails when required, which is what a manifest listing exactly what shipped calls for.

manifestNames

The names in this bundle's .libraries manifest, which lists what shipped for this platform.

resource

Opens a resource, preferring the context class loader.