JavaForkOptions

Specifies the options to use to fork a Java process.

Inheritors

Functions

Link copied to clipboard
abstract fun bootstrapClasspath(classpath: Array<Any>): JavaForkOptions
Adds the given values to the end of the bootstrap classpath for the process.
Link copied to clipboard
abstract fun copyTo(options: JavaForkOptions): JavaForkOptions
Copies these options to the given options.
Link copied to clipboard
abstract fun debugOptions(action: Action<JavaDebugOptions>)
Configures Java Debug Wire Protocol properties for the process.
Link copied to clipboard
abstract fun environment(environmentVariables: Map<String, out Any>): ProcessForkOptions
Link copied to clipboard
inline fun ProcessForkOptions.environment(vararg environmentVariables: Pair<String, Any?>): ProcessForkOptions

Kotlin extension function for org.gradle.process.ProcessForkOptions.environment.

Link copied to clipboard
abstract fun executable(executable: Any): ProcessForkOptions
Link copied to clipboard
Returns the full set of arguments to use to launch the JVM for the process.
Link copied to clipboard
Returns the bootstrap classpath to use for the process.
Link copied to clipboard
abstract fun getDebug(): Boolean
Determines whether debugging is enabled for the test process.
Link copied to clipboard
Returns the Java Debug Wire Protocol properties for the process.
Link copied to clipboard
Returns the default character encoding to use.
Link copied to clipboard
Returns true if assertions are enabled for the process.
Link copied to clipboard
abstract fun getEnvironment(): Map<String, Any>
Link copied to clipboard
abstract fun getExecutable(): String
Link copied to clipboard
@Nullable
abstract fun getJvmArgs(): List<String>
Returns the extra arguments to use to launch the JVM for the process.
Link copied to clipboard
Command line argument providers for the java process to fork.
Link copied to clipboard
@Nullable
abstract fun getMaxHeapSize(): String
Returns the maximum heap size for the process, if any.
Link copied to clipboard
@Nullable
abstract fun getMinHeapSize(): String
Returns the minimum heap size for the process, if any.
Link copied to clipboard
Returns the system properties which will be used for the process.
Link copied to clipboard
abstract fun getWorkingDir(): File
Link copied to clipboard
abstract fun jvmArgs(arguments: Iterable<out Any>): JavaForkOptions
abstract fun jvmArgs(arguments: Array<Any>): JavaForkOptions
Adds some arguments to use to launch the JVM for the process.
Link copied to clipboard
abstract fun setAllJvmArgs(arguments: Iterable<out Any>)
abstract fun setAllJvmArgs(arguments: List<String>)
Sets the full set of arguments to use to launch the JVM for the process.
Link copied to clipboard
abstract fun setBootstrapClasspath(classpath: FileCollection)
Sets the bootstrap classpath to use for the process.
Link copied to clipboard
abstract fun setDebug(enabled: Boolean)
Enable or disable debugging for the process.
Link copied to clipboard
abstract fun setDefaultCharacterEncoding(@Nullable defaultCharacterEncoding: String)
Sets the default character encoding to use.
Link copied to clipboard
abstract fun setEnableAssertions(enabled: Boolean)
Enable or disable assertions for the process.
Link copied to clipboard
abstract fun setEnvironment(environmentVariables: Map<String, out Any>)
Link copied to clipboard
inline fun ProcessForkOptions.setEnvironment(vararg environmentVariables: Pair<String, Any?>)

Kotlin extension function for org.gradle.process.ProcessForkOptions.setEnvironment.

Link copied to clipboard
abstract fun setExecutable(executable: String)
Link copied to clipboard
abstract fun setJvmArgs(@Nullable arguments: Iterable<out Any>)
abstract fun setJvmArgs(@Nullable arguments: List<String>)
Sets the extra arguments to use to launch the JVM for the process.
Link copied to clipboard
abstract fun setMaxHeapSize(@Nullable heapSize: String)
Sets the maximum heap size for the process.
Link copied to clipboard
abstract fun setMinHeapSize(@Nullable heapSize: String)
Sets the minimum heap size for the process.
Link copied to clipboard
abstract fun setSystemProperties(properties: Map<String, out Any>)
Sets the system properties to use for the process.
Link copied to clipboard
abstract fun setWorkingDir(dir: File)
Link copied to clipboard
abstract fun systemProperties(properties: Map<String, out Any>): JavaForkOptions
Adds some system properties to use for the process.
Link copied to clipboard
inline fun JavaForkOptions.systemProperties(vararg properties: Pair<String, Any?>): JavaForkOptions

Kotlin extension function for org.gradle.process.JavaForkOptions.systemProperties.

Link copied to clipboard
abstract fun systemProperty(name: String, value: Any): JavaForkOptions
Adds a system property to use for the process.
Link copied to clipboard
abstract fun workingDir(dir: Any): ProcessForkOptions