Groovy Documentation

org.gradle.tooling.model.build
[Java] Interface JavaEnvironment


public interface JavaEnvironment

Informs about the java environment, for example the java home or the jvm args used.

See example in BuildEnvironment

Since:
1.0-milestone-8


Method Summary
File getJavaHome()

The java home used for gradle operations (e.g. running tasks or acquiring model information, etc).

List getJvmArguments()

The jvm arguments used to start the java process that handles gradle operations (e.g. running tasks or acquiring model information, etc).

 

Method Detail

getJavaHome

public File getJavaHome()
The java home used for gradle operations (e.g. running tasks or acquiring model information, etc).


getJvmArguments

public List getJvmArguments()
The jvm arguments used to start the java process that handles gradle operations (e.g. running tasks or acquiring model information, etc).

The returned jvm arguments that were used to start the java process. They do not include system properties passed as -Dfoo=bar. They may include the implicitly immutable system properties like "file.encoding".


 

Gradle API 1.0