|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.ConventionTask org.gradle.api.tasks.JavaExec
public class JavaExec extends ConventionTask
Executes a Java application in a child process.
The process can be started in debug mode (see getDebug()) in an ad-hoc manner by supplying the `--debug-jvm` switch when invoking the build.
gradle someJavaExecTask --debug-jvm
Constructor Summary | |
JavaExec()
|
Method Summary | |
---|---|
JavaExec
|
args(Object... args)
{@inheritDoc} |
JavaExecSpec
|
args(Iterable args)
{@inheritDoc} |
JavaExec
|
bootstrapClasspath(Object... classpath)
{@inheritDoc} |
JavaExec
|
classpath(Object... paths)
{@inheritDoc} |
JavaExec
|
copyTo(JavaForkOptions options)
{@inheritDoc} |
JavaExec
|
copyTo(ProcessForkOptions target)
{@inheritDoc} |
JavaExec
|
environment(String name, Object value)
{@inheritDoc} |
JavaExec
|
environment(Map environmentVariables)
{@inheritDoc} |
void
|
exec()
|
JavaExec
|
executable(Object executable)
{@inheritDoc} |
List
|
getAllJvmArgs()
{@inheritDoc} |
List
|
getArgs()
{@inheritDoc} |
FileCollection
|
getBootstrapClasspath()
{@inheritDoc} |
FileCollection
|
getClasspath()
{@inheritDoc} |
List
|
getCommandLine()
{@inheritDoc} |
boolean
|
getDebug()
{@inheritDoc} |
String
|
getDefaultCharacterEncoding()
{@inheritDoc} |
boolean
|
getEnableAssertions()
{@inheritDoc} |
Map
|
getEnvironment()
{@inheritDoc} |
OutputStream
|
getErrorOutput()
{@inheritDoc} |
String
|
getExecutable()
{@inheritDoc} |
List
|
getJvmArgs()
{@inheritDoc} |
String
|
getMain()
{@inheritDoc} |
String
|
getMaxHeapSize()
{@inheritDoc} |
String
|
getMinHeapSize()
{@inheritDoc} |
InputStream
|
getStandardInput()
{@inheritDoc} |
OutputStream
|
getStandardOutput()
{@inheritDoc} |
Map
|
getSystemProperties()
{@inheritDoc} |
File
|
getWorkingDir()
{@inheritDoc} |
boolean
|
isIgnoreExitValue()
{@inheritDoc} |
JavaExec
|
jvmArgs(Iterable arguments)
{@inheritDoc} |
JavaExec
|
jvmArgs(Object... arguments)
{@inheritDoc} |
void
|
setAllJvmArgs(Iterable arguments)
{@inheritDoc} |
JavaExec
|
setArgs(Iterable applicationArgs)
{@inheritDoc} |
void
|
setBootstrapClasspath(FileCollection classpath)
{@inheritDoc} |
JavaExec
|
setClasspath(FileCollection classpath)
{@inheritDoc} |
void
|
setDebug(boolean enabled)
{@inheritDoc} |
void
|
setDefaultCharacterEncoding(String defaultCharacterEncoding)
{@inheritDoc} |
void
|
setEnableAssertions(boolean enabled)
{@inheritDoc} |
void
|
setEnvironment(Map environmentVariables)
{@inheritDoc} |
JavaExec
|
setErrorOutput(OutputStream outputStream)
{@inheritDoc} |
void
|
setExecutable(Object executable)
{@inheritDoc} |
JavaExecSpec
|
setIgnoreExitValue(boolean ignoreExitValue)
{@inheritDoc} |
void
|
setJvmArgs(Iterable arguments)
{@inheritDoc} |
JavaExec
|
setMain(String mainClassName)
{@inheritDoc} |
void
|
setMaxHeapSize(String heapSize)
{@inheritDoc} |
void
|
setMinHeapSize(String heapSize)
{@inheritDoc} |
JavaExec
|
setStandardInput(InputStream inputStream)
{@inheritDoc} |
JavaExec
|
setStandardOutput(OutputStream outputStream)
{@inheritDoc} |
void
|
setSystemProperties(Map properties)
{@inheritDoc} |
void
|
setWorkingDir(Object dir)
{@inheritDoc} |
JavaExec
|
systemProperties(Map properties)
{@inheritDoc} |
JavaExec
|
systemProperty(String name, Object value)
{@inheritDoc} |
JavaExec
|
workingDir(Object dir)
{@inheritDoc} |
Constructor Detail |
---|
public JavaExec()
Method Detail |
---|
public JavaExec args(Object... args)
public JavaExecSpec args(Iterable args)
public JavaExec bootstrapClasspath(Object... classpath)
public JavaExec classpath(Object... paths)
public JavaExec copyTo(JavaForkOptions options)
public JavaExec copyTo(ProcessForkOptions target)
public JavaExec environment(String name, Object value)
public JavaExec environment(Map environmentVariables)
@TaskAction public void exec()
public JavaExec executable(Object executable)
public List getAllJvmArgs()
public List getArgs()
@InputFiles public FileCollection getBootstrapClasspath()
@InputFiles public FileCollection getClasspath()
public List getCommandLine()
public boolean getDebug()
public String getDefaultCharacterEncoding()
public boolean getEnableAssertions()
public Map getEnvironment()
public OutputStream getErrorOutput()
public String getExecutable()
public List getJvmArgs()
public String getMain()
public String getMaxHeapSize()
public String getMinHeapSize()
public InputStream getStandardInput()
public OutputStream getStandardOutput()
public Map getSystemProperties()
public File getWorkingDir()
public boolean isIgnoreExitValue()
public JavaExec jvmArgs(Iterable arguments)
public JavaExec jvmArgs(Object... arguments)
public void setAllJvmArgs(Iterable arguments)
public JavaExec setArgs(Iterable applicationArgs)
public void setBootstrapClasspath(FileCollection classpath)
public JavaExec setClasspath(FileCollection classpath)
@Option(option = "debug-jvm", description = "Enable debugging for the process. The process is started suspended and listening on port 5005. [INCUBATING]") public void setDebug(boolean enabled)
public void setDefaultCharacterEncoding(String defaultCharacterEncoding)
public void setEnableAssertions(boolean enabled)
public void setEnvironment(Map environmentVariables)
public JavaExec setErrorOutput(OutputStream outputStream)
public void setExecutable(Object executable)
public JavaExecSpec setIgnoreExitValue(boolean ignoreExitValue)
public void setJvmArgs(Iterable arguments)
public JavaExec setMain(String mainClassName)
public void setMaxHeapSize(String heapSize)
public void setMinHeapSize(String heapSize)
public JavaExec setStandardInput(InputStream inputStream)
public JavaExec setStandardOutput(OutputStream outputStream)
public void setSystemProperties(Map properties)
public void setWorkingDir(Object dir)
public JavaExec systemProperties(Map properties)
public JavaExec systemProperty(String name, Object value)
public JavaExec workingDir(Object dir)
Gradle API 1.12