Package: org.gradle.api.tasks

## [Java] Class Exec

- org.gradle.api.tasks.Exec

- Executes a command line process. Example:

       task stopTomcat(type:Exec) {
         workingDir '../tomcat/bin'

         //on windows:
         commandLine 'cmd', '/c', 'stop.bat'

         //on linux
         commandLine './stop.sh'

         //store the output instead of printing to the console:
         standardOutput = new ByteArrayOutputStream()

         //extension method stopTomcat.output() can be used to obtain the output:
         ext.output = {
           return standardOutput.toString()
         }
       }

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Exec ()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractExecTask` | `args, args, commandLine, commandLine, copyTo, environment, environment, exec, executable, getArgs, getCommandLine, getEnvironment, getErrorOutput, getExecActionFactory, getExecResult, getExecutable, getStandardInput, getStandardOutput, getWorkingDir, isIgnoreExitValue, setArgs, setCommandLine, setCommandLine, setEnvironment, setErrorOutput, setExecutable, setIgnoreExitValue, setStandardInput, setStandardOutput, setWorkingDir, workingDir`

- - ### Constructor Detail

    - #### public Exec()