|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.process.JavaForkOptions org.gradle.process.ProcessForkOptions
public interface JavaForkOptions extends ProcessForkOptions
Specifies the options to use to fork a Java process.
Method Summary | |
---|---|
JavaForkOptions
|
bootstrapClasspath(Object... classpath)
Adds the given values to the end of the bootstrap classpath for the process. |
JavaForkOptions
|
copyTo(JavaForkOptions options)
Copies these options to the given options. |
List
|
getAllJvmArgs()
Returns the full set of arguments to use to launch the JVM for the process. |
FileCollection
|
getBootstrapClasspath()
Returns the bootstrap classpath to use for the process. |
boolean
|
getDebug()
Returns true if debugging is enabled for the process. |
String
|
getDefaultCharacterEncoding()
Returns the default character encoding to use. |
boolean
|
getEnableAssertions()
Returns true if assertions are enabled for the process. |
List
|
getJvmArgs()
Returns the extra arguments to use to launch the JVM for the process. |
String
|
getMaxHeapSize()
Returns the maximum heap size for the process, if any. |
String
|
getMinHeapSize()
Returns the minimum heap size for the process, if any. |
Map
|
getSystemProperties()
Returns the system properties which will be used for the process. |
JavaForkOptions
|
jvmArgs(Iterable arguments)
Adds some arguments to use to launch the JVM for the process. |
JavaForkOptions
|
jvmArgs(Object... arguments)
Adds some arguments to use to launch the JVM for the process. |
void
|
setAllJvmArgs(Iterable arguments)
Sets the full set of arguments to use to launch the JVM for the process. |
void
|
setBootstrapClasspath(FileCollection classpath)
Sets the bootstrap classpath to use for the process. |
void
|
setDebug(boolean enabled)
Enable or disable debugging for the process. |
void
|
setDefaultCharacterEncoding(String defaultCharacterEncoding)
Sets the default character encoding to use. |
void
|
setEnableAssertions(boolean enabled)
Enable or disable assertions for the process. |
void
|
setJvmArgs(Iterable arguments)
Sets the extra arguments to use to launch the JVM for the process. |
void
|
setMaxHeapSize(String heapSize)
Sets the maximum heap size for the process. |
void
|
setMinHeapSize(String heapSize)
Sets the minimum heap size for the process. |
void
|
setSystemProperties(Map properties)
Sets the system properties to use for the process. |
JavaForkOptions
|
systemProperties(Map properties)
Adds some system properties to use for the process. |
JavaForkOptions
|
systemProperty(String name, Object value)
Adds a system property to use for the process. |
Methods inherited from interface ProcessForkOptions | |
---|---|
copyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setWorkingDir, workingDir |
Method Detail |
---|
public JavaForkOptions bootstrapClasspath(Object... classpath)
classpath
- The classpath.
public JavaForkOptions copyTo(JavaForkOptions options)
options
- The target options.
public List getAllJvmArgs()
public FileCollection getBootstrapClasspath()
public boolean getDebug()
public String getDefaultCharacterEncoding()
public boolean getEnableAssertions()
public List getJvmArgs()
public String getMaxHeapSize()
public String getMinHeapSize()
public Map getSystemProperties()
public JavaForkOptions jvmArgs(Iterable arguments)
arguments
- The arguments. Must not be null.
public JavaForkOptions jvmArgs(Object... arguments)
arguments
- The arguments.
public void setAllJvmArgs(Iterable arguments)
arguments
- The arguments. Must not be null.
public void setBootstrapClasspath(FileCollection classpath)
classpath
- The classpath. Must not be null. Can be empty.
public void setDebug(boolean enabled)
enabled
- true to enable debugging, false to disable.
public void setDefaultCharacterEncoding(String defaultCharacterEncoding)
defaultCharacterEncoding
- The default character encoding. Use null to use this JVM's default charset
public void setEnableAssertions(boolean enabled)
enabled
- true to enable assertions, false to disable.
public void setJvmArgs(Iterable arguments)
arguments
- The arguments. Must not be null.
public void setMaxHeapSize(String heapSize)
heapSize
- The heap size. Use null for the default maximum heap size.
public void setMinHeapSize(String heapSize)
heapSize
- The minimum heap size. Use null for the default minimum heap size.
public void setSystemProperties(Map properties)
properties
- The system properties. Must not be null.
public JavaForkOptions systemProperties(Map properties)
properties
- The system properties. Must not be null.
public JavaForkOptions systemProperty(String name, Object value)
name
- The name of the propertyvalue
- The value for the property. May be null.
Gradle API 1.12