Interface ExecSpec

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

public interface ExecSpec extends BaseExecSpec
Specified the options for executing some command.
  • Method Details

    • getCommandLine

      Provider<List<String>> getCommandLine()
      Returns the full command line, including the executable plus its arguments.
      Specified by:
      getCommandLine in interface BaseExecSpec
      Returns:
      The full command line, including the executable plus its arguments
    • commandLine

      ExecSpec commandLine(Object... args)
      Sets the full command line, including the executable to be executed plus its arguments.
      Parameters:
      args - the command plus the args to be executed
      Returns:
      this
    • commandLine

      ExecSpec commandLine(Iterable<?> args)
      Sets the full command line, including the executable to be executed plus its arguments.
      Parameters:
      args - the command plus the args to be executed
      Returns:
      this
    • args

      ExecSpec args(Object... args)
      Adds arguments for the command to be executed.
      Parameters:
      args - args for the command
      Returns:
      this
    • args

      ExecSpec args(Iterable<?> args)
      Adds arguments for the command to be executed.
      Parameters:
      args - args for the command
      Returns:
      this
    • getArgs

      ListProperty<String> getArgs()
      Returns the arguments for the command to be executed. Defaults to an empty list.
    • getArgumentProviders

      ListProperty<CommandLineArgumentProvider> getArgumentProviders()
      Argument providers for the application.
      Since:
      4.6