Groovy Documentation

org.gradle.api.tasks
[Java] Class JavaExec

java.lang.Object
  org.gradle.api.internal.ConventionTask
      org.gradle.api.tasks.JavaExec
All Implemented Interfaces:
JavaExecSpec

public class JavaExec
extends ConventionTask

Executes a Java application.

Authors:
Hans Dockter


Constructor Summary
JavaExec()

 
Method Summary
JavaExec args(java.lang.Object args)

{@inheritDoc}

JavaExecSpec args(java.lang.Iterable args)

{@inheritDoc}

JavaExec bootstrapClasspath(java.lang.Object classpath)

{@inheritDoc}

JavaExec classpath(java.lang.Object paths)

{@inheritDoc}

JavaExec copyTo(JavaForkOptions options)

{@inheritDoc}

JavaExec copyTo(ProcessForkOptions target)

{@inheritDoc}

JavaExec environment(java.lang.String name, java.lang.Object value)

{@inheritDoc}

JavaExec environment(java.util.Map environmentVariables)

{@inheritDoc}

JavaExec executable(java.lang.Object executable)

{@inheritDoc}

java.util.List getAllJvmArgs()

{@inheritDoc}

java.util.List getArgs()

{@inheritDoc}

FileCollection getBootstrapClasspath()

{@inheritDoc}

FileCollection getClasspath()

{@inheritDoc}

java.util.List getCommandLine()

{@inheritDoc}

boolean getDebug()

{@inheritDoc}

boolean getEnableAssertions()

{@inheritDoc}

java.util.Map getEnvironment()

{@inheritDoc}

java.lang.String getExecutable()

{@inheritDoc}

java.util.List getJvmArgs()

{@inheritDoc}

java.lang.String getMain()

{@inheritDoc}

java.lang.String getMaxHeapSize()

{@inheritDoc}

java.io.InputStream getStandardInput()

{@inheritDoc}

java.util.Map getSystemProperties()

{@inheritDoc}

java.io.File getWorkingDir()

{@inheritDoc}

boolean isIgnoreExitValue()

{@inheritDoc}

JavaExec jvmArgs(java.lang.Iterable arguments)

{@inheritDoc}

JavaExec jvmArgs(java.lang.Object arguments)

{@inheritDoc}

void setAllJvmArgs(java.lang.Iterable arguments)

{@inheritDoc}

JavaExec setArgs(java.lang.Iterable applicationArgs)

{@inheritDoc}

void setBootstrapClasspath(FileCollection classpath)

{@inheritDoc}

JavaExec setClasspath(FileCollection classpath)

{@inheritDoc}

void setDebug(boolean enabled)

{@inheritDoc}

void setEnableAssertions(boolean enabled)

{@inheritDoc}

void setEnvironment(java.util.Map environmentVariables)

{@inheritDoc}

JavaExec setErrorOutput(java.io.OutputStream outputStream)

{@inheritDoc}

void setExecutable(java.lang.Object executable)

{@inheritDoc}

JavaExecSpec setIgnoreExitValue(boolean ignoreExitValue)

{@inheritDoc}

void setJvmArgs(java.lang.Iterable arguments)

{@inheritDoc}

JavaExec setMain(java.lang.String mainClassName)

{@inheritDoc}

void setMaxHeapSize(java.lang.String heapSize)

{@inheritDoc}

JavaExec setStandardInput(java.io.InputStream inputStream)

{@inheritDoc}

JavaExec setStandardOutput(java.io.OutputStream outputStream)

{@inheritDoc}

void setSystemProperties(java.util.Map properties)

{@inheritDoc}

void setWorkingDir(java.lang.Object dir)

{@inheritDoc}

JavaExec systemProperties(java.util.Map properties)

{@inheritDoc}

JavaExec systemProperty(java.lang.String name, java.lang.Object value)

{@inheritDoc}

JavaExec workingDir(java.lang.Object dir)

{@inheritDoc}

 

Constructor Detail

JavaExec

public JavaExec()


 
Method Detail

args

public JavaExec args(java.lang.Object args)
{@inheritDoc}


args

public JavaExecSpec args(java.lang.Iterable args)
{@inheritDoc}


bootstrapClasspath

public JavaExec bootstrapClasspath(java.lang.Object classpath)
{@inheritDoc}


classpath

public JavaExec classpath(java.lang.Object paths)
{@inheritDoc}


copyTo

public JavaExec copyTo(JavaForkOptions options)
{@inheritDoc}


copyTo

public JavaExec copyTo(ProcessForkOptions target)
{@inheritDoc}


environment

public JavaExec environment(java.lang.String name, java.lang.Object value)
{@inheritDoc}


environment

public JavaExec environment(java.util.Map environmentVariables)
{@inheritDoc}


executable

public JavaExec executable(java.lang.Object executable)
{@inheritDoc}


getAllJvmArgs

public java.util.List getAllJvmArgs()
{@inheritDoc}


getArgs

public java.util.List getArgs()
{@inheritDoc}


getBootstrapClasspath

public FileCollection getBootstrapClasspath()
{@inheritDoc}


getClasspath

public FileCollection getClasspath()
{@inheritDoc}


getCommandLine

public java.util.List getCommandLine()
{@inheritDoc}


getDebug

public boolean getDebug()
{@inheritDoc}


getEnableAssertions

public boolean getEnableAssertions()
{@inheritDoc}


getEnvironment

public java.util.Map getEnvironment()
{@inheritDoc}


getExecutable

public java.lang.String getExecutable()
{@inheritDoc}


getJvmArgs

public java.util.List getJvmArgs()
{@inheritDoc}


getMain

public java.lang.String getMain()
{@inheritDoc}


getMaxHeapSize

public java.lang.String getMaxHeapSize()
{@inheritDoc}


getStandardInput

public java.io.InputStream getStandardInput()
{@inheritDoc}


getSystemProperties

public java.util.Map getSystemProperties()
{@inheritDoc}


getWorkingDir

public java.io.File getWorkingDir()
{@inheritDoc}


isIgnoreExitValue

public boolean isIgnoreExitValue()
{@inheritDoc}


jvmArgs

public JavaExec jvmArgs(java.lang.Iterable arguments)
{@inheritDoc}


jvmArgs

public JavaExec jvmArgs(java.lang.Object arguments)
{@inheritDoc}


setAllJvmArgs

public void setAllJvmArgs(java.lang.Iterable arguments)
{@inheritDoc}


setArgs

public JavaExec setArgs(java.lang.Iterable applicationArgs)
{@inheritDoc}


setBootstrapClasspath

public void setBootstrapClasspath(FileCollection classpath)
{@inheritDoc}


setClasspath

public JavaExec setClasspath(FileCollection classpath)
{@inheritDoc}


setDebug

public void setDebug(boolean enabled)
{@inheritDoc}


setEnableAssertions

public void setEnableAssertions(boolean enabled)
{@inheritDoc}


setEnvironment

public void setEnvironment(java.util.Map environmentVariables)
{@inheritDoc}


setErrorOutput

public JavaExec setErrorOutput(java.io.OutputStream outputStream)
{@inheritDoc}


setExecutable

public void setExecutable(java.lang.Object executable)
{@inheritDoc}


setIgnoreExitValue

public JavaExecSpec setIgnoreExitValue(boolean ignoreExitValue)
{@inheritDoc}


setJvmArgs

public void setJvmArgs(java.lang.Iterable arguments)
{@inheritDoc}


setMain

public JavaExec setMain(java.lang.String mainClassName)
{@inheritDoc}


setMaxHeapSize

public void setMaxHeapSize(java.lang.String heapSize)
{@inheritDoc}


setStandardInput

public JavaExec setStandardInput(java.io.InputStream inputStream)
{@inheritDoc}


setStandardOutput

public JavaExec setStandardOutput(java.io.OutputStream outputStream)
{@inheritDoc}


setSystemProperties

public void setSystemProperties(java.util.Map properties)
{@inheritDoc}


setWorkingDir

public void setWorkingDir(java.lang.Object dir)
{@inheritDoc}


systemProperties

public JavaExec systemProperties(java.util.Map properties)
{@inheritDoc}


systemProperty

public JavaExec systemProperty(java.lang.String name, java.lang.Object value)
{@inheritDoc}


workingDir

public JavaExec workingDir(java.lang.Object dir)
{@inheritDoc}


 

Groovy Documentation