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 and description |
---|
JavaExec
() |
Type | Name and description |
---|---|
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<String, ?> environmentVariables) {@inheritDoc} |
void |
exec() |
JavaExec |
executable(Object executable) {@inheritDoc} |
List<String> |
getAllJvmArgs() {@inheritDoc} |
List<String> |
getArgs() {@inheritDoc} |
FileCollection |
getBootstrapClasspath() {@inheritDoc} |
FileCollection |
getClasspath() {@inheritDoc} |
List<String> |
getCommandLine() {@inheritDoc} |
boolean |
getDebug() {@inheritDoc} |
String |
getDefaultCharacterEncoding() {@inheritDoc} |
boolean |
getEnableAssertions() {@inheritDoc} |
Map<String, Object> |
getEnvironment() {@inheritDoc} |
OutputStream |
getErrorOutput() {@inheritDoc} |
String |
getExecutable() {@inheritDoc} |
protected FileResolver |
getFileResolver() |
List<String> |
getJvmArgs() {@inheritDoc} |
String |
getMain() {@inheritDoc} |
String |
getMaxHeapSize() {@inheritDoc} |
String |
getMinHeapSize() {@inheritDoc} |
InputStream |
getStandardInput() {@inheritDoc} |
OutputStream |
getStandardOutput() {@inheritDoc} |
Map<String, Object> |
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<String, ?> 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<String, ?> properties) {@inheritDoc} |
void |
setWorkingDir(Object dir) {@inheritDoc} |
JavaExec |
systemProperties(Map<String, ?> properties) {@inheritDoc} |
JavaExec |
systemProperty(String name, Object value) {@inheritDoc} |
JavaExec |
workingDir(Object dir) {@inheritDoc} |
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}