task runcommand for you.
task()and end with
runmethod tells the DSL that you are finished chaining methods and that the task should be executed. Here is the simplest possible example:
task.cfcin the current working directory and the output would be flushed to the console.
TaskDSLclass and returns it. It accepts a single parameter called
taskFilewhich is the path of the task CFC you wish to run. Just like the
task runcommand, you can supply a full path or a relative path. The
.cfcextension is also optional. If you don't pass in a task CFC name, it defaults to
--prior to the value, but it will still work.
runmethod. This executes the task. By default, the output will be sent to the console, however you can capture it by specifying
trueand the task will be echoed out prior to execution. The echoed text is not part of what gets returned.
errorcodeproperty of the exception if the
error()method was used
getExitCode()on the Task DSL object