org.gradle.process
Interface ExecSpec

All Superinterfaces:
BaseExecSpec, ProcessForkOptions
All Known Implementing Classes:
Exec

public interface ExecSpec
extends BaseExecSpec

Specified the options for executing some command.


Method Summary
 ExecSpec args(Iterable<?> args)
          Adds args for the command to be executed.
 ExecSpec args(Object... args)
          Adds args for the command to be executed.
 ExecSpec commandLine(Iterable<?> args)
          Sets the command plus the args to be executed.
 ExecSpec commandLine(Object... args)
          Sets the command plus the args to be executed.
 List<String> getArgs()
          Returns the args for the command to be executed.
 ExecSpec setArgs(Iterable<?> args)
          Sets the args for the command to be executed.
 
Methods inherited from interface org.gradle.process.BaseExecSpec
getCommandLine, getStandardInput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutput
 
Methods inherited from interface org.gradle.process.ProcessForkOptions
copyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setWorkingDir, workingDir
 

Method Detail

commandLine

ExecSpec commandLine(Object... args)
Sets the command plus the args to be executed.

Parameters:
args - the command plus the args to be executed
Returns:
this

commandLine

ExecSpec commandLine(Iterable<?> args)
Sets the command plus the args to be executed.

Parameters:
args - the command plus the args to be executed
Returns:
this

args

ExecSpec args(Object... args)
Adds args for the command to be executed.

Parameters:
args - args for the command
Returns:
this

args

ExecSpec args(Iterable<?> args)
Adds args for the command to be executed.

Parameters:
args - args for the command
Returns:
this

setArgs

ExecSpec setArgs(Iterable<?> args)
Sets the args for the command to be executed.

Parameters:
args - args for the command
Returns:
this

getArgs

List<String> getArgs()
Returns the args for the command to be executed.