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 and description | 
|---|
                                Exec
                                () | 
                        
| 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 | 
                        
Gradle API 2.2-20140924021627+0000