|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.process.ProcessForkOptions org.gradle.process.JavaForkOptions
public interface JavaForkOptions extends ProcessForkOptions
Specifies the options to use to fork a Java process.
Method Summary | |
---|---|
JavaForkOptions
|
bootstrapClasspath(java.lang.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. |
java.util.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. |
boolean
|
getEnableAssertions()
Returns true if assertions are enabled for the process. |
java.util.List
|
getJvmArgs()
Returns the extra arguments to use to launch the JVM for the process. |
java.lang.String
|
getMaxHeapSize()
Returns the maximum heap size for the process, if any. |
java.util.Map
|
getSystemProperties()
Returns the system properties which will be used for the process. |
JavaForkOptions
|
jvmArgs(java.lang.Iterable arguments)
Adds some arguments to use to launch the JVM for the process. |
JavaForkOptions
|
jvmArgs(java.lang.Object... arguments)
Adds some arguments to use to launch the JVM for the process. |
void
|
setAllJvmArgs(java.lang.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
|
setEnableAssertions(boolean enabled)
Enable or disable assertions for the process. |
void
|
setJvmArgs(java.lang.Iterable arguments)
Sets the extra arguments to use to launch the JVM for the process. |
void
|
setMaxHeapSize(java.lang.String heapSize)
Sets the maximum heap size for the process. |
void
|
setSystemProperties(java.util.Map properties)
Sets the system properties to use for the process. |
JavaForkOptions
|
systemProperties(java.util.Map properties)
Adds some system properties to use for the process. |
JavaForkOptions
|
systemProperty(java.lang.String name, java.lang.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(java.lang.Object... classpath)
classpath
- The classpath.
public JavaForkOptions copyTo(JavaForkOptions options)
options
- The target options.
public java.util.List getAllJvmArgs()
public FileCollection getBootstrapClasspath()
public boolean getDebug()
public boolean getEnableAssertions()
public java.util.List getJvmArgs()
public java.lang.String getMaxHeapSize()
public java.util.Map getSystemProperties()
public JavaForkOptions jvmArgs(java.lang.Iterable arguments)
arguments
- The arguments. Must not be null.
public JavaForkOptions jvmArgs(java.lang.Object... arguments)
arguments
- The arguments.
public void setAllJvmArgs(java.lang.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 setEnableAssertions(boolean enabled)
enabled
- true to enable assertions, false to disable.
public void setJvmArgs(java.lang.Iterable arguments)
arguments
- The arguments. Must not be null.
public void setMaxHeapSize(java.lang.String heapSize)
heapSize
- The heap size. Use null for the default maximum heap size.
public void setSystemProperties(java.util.Map properties)
properties
- The system properties. Must not be null.
public JavaForkOptions systemProperties(java.util.Map properties)
properties
- The system properties. Must not be null.
public JavaForkOptions systemProperty(java.lang.String name, java.lang.Object value)
name
- The name of the propertyvalue
- The value for the property. May be null.
Groovy Documentation