rustic / com.osm.gradle.plugins.wrapper / RustToolBase

RustToolBase

abstract class RustToolBase

This class has the ability to call another application from this application.

Constructors

<init>

This class has the ability to call another application from this application.

RustToolBase()

Properties

additionalEnvironment

Set the environment variables used when running the application.

val additionalEnvironment: MutableMap<String, String>

executable

Set the path to the executable file. For relative paths, it is resolved based on workingDirectory. If only the file name is set, not the path, the location of the executable is searched from the environment variable PATH.

abstract val executable: String

workingDirectory

Set the path to use as the working directory when running the application.

var workingDirectory: Path?

Functions

run

Run external applications synchronously. Wait for the executed application to complete.

fun run(args: List<String>): String
fun run(vararg args: String): String
fun run(commands: List<String>, options: OptionBuilder): String
fun run(command: String, options: OptionBuilder): String

Inheritors

Cargo

Wraps the functionality of the cargo command.

class Cargo : RustToolBase

Rustup

Wraps the functionality of the options command.

class Rustup : RustToolBase