Report Exec Task
The task can for example be used to send PDFs to a printer.
directory) This may be either an absolute path or relative to the current directory of the running VM.
The directory must be writable (if files are deleted after processing).
command) The command may contain the following variables:
- "${FILE}" is substituted by the file name (no path) being processed.
- "${DIR}" is substituted by the file path of the directory the file is in (relative to the JVMs current directory). This corresponds to the path of the directory specified by configuration property "directory".
- "${ABSOLUTE_DIR}" is substituted by the absolute file path of the directory the file is in. This corresponds to the path of the directory specified by configuration property "directory".
The command is executed in the directory denoted by the configuration property "directory".
filenameSuffix) The suffix is NOT case-sensitive.
filenamePrefix) The prefix matched against the filename only, i.e. without the path to the folder it is in.
The prefix is NOT case-sensitive.
deleteProcessedFiles) Note: Not deleting the file usually means that it gets executed again and again. Setting this property to "false" makes sense if the OS-command removes the file from the directory.
successReturnCodes) Multiple return codes may be specified as comma-separted list.
If more than one return code is specified, they are all compared to the result code.
If the return code from the OS command does not match any of the specified return codes, it is considered to be a failure.
The elements must be integers.
outputPattern) The pattern is compared against the whole output, i.e. including line breaks. The "." also matches line breaks ("DOTALL" is enabled).
If defined, this check is done after the result code has been checked (see property "success-return-code".
Multiple patterns may be defined using the group/selector notation.
If the output from the OS command does not match any of the patterns, it is considered to be a failure.
type: ReportExecTask
id: ReportExecTask-xxxxxx
displayName:
comment:
properties:
command:
deleteProcessedFiles: true
directory:
filenamePrefix:
filenameSuffix:
outputPattern:
successReturnCodes: [0]