task run
command for you.task()
and end with .run()
. The run
method tells the DSL that you are finished chaining methods and that the task should be executed. Here is the simplest possible example:task.cfc
in the current working directory and the output would be flushed to the console.TaskDSL
class and returns it. It accepts a single parameter called taskFile
which is the path of the task CFC you wish to run. Just like the task run
command, you can supply a full path or a relative path. The .cfc
extension is also optional. If you don't pass in a task CFC name, it defaults to task
.run
.--
prior to the value, but it will still work.run
method. This executes the task. By default, the output will be sent to the console, however you can capture it by specifying returnOutput
as true
.echo
parameter to true
and the task will be echoed out prior to execution. The echoed text is not part of what gets returned.${exitCode}
environment variableerrorcode
property of the exception if the error()
method was usedgetExitCode()
on the Task DSL object