Dashboard > Pulse v1.2 > ... > artifact > process
  Pulse v1.2 Log In | Sign Up   View a printable version of the current page.  
  process
Added by Jason Sankey, last edited by Jason Sankey on Oct 12, 2006  (view change)
Labels: 
(None)

Pulse Manual Index

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>

Zutubi wiki is Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators