Process
The process element is used to apply a post-processor to an artifact. It can be applied to command output, file artifacts and directory artifacts. In the case of directory artifacts, the processor is applied to each file within the directory that is captured.
Attributes
| Attribute |
Description |
Required? |
Default |
| processor |
A reference to the processor to apply. |
Yes |
|
Child Elements
None.
Examples
Apply a regular expression post-processor to the output of a make command:
<regex.pp name="compiler.pp">
<pattern category="error" expression="\.[ch]: [0-9]+: error"/>
</regex.pp>
<recipe name="default">
<make name="build">
<process processor="${compiler.pp}"/>
</make>
</recipe>
Apply a JUnit post-processor to a captured JUnit test report:
<junit.pp name="junit"/>
<recipe name="default">
<command name="build">
<ant targets="build.all"/>
<artifact name="junit xml report" file="build/reports/junit/TESTS-TestSuites.xml" fail-if-not-present="false">
<process processor="${junit}"/>
</artifact>
</command>
</recipe>