Dashboard > Pulse v1.2 > ... > pulse Files > ant.pp
  Pulse v1.2 Log In | Sign Up   View a printable version of the current page.  
  ant.pp
Added by Jason Sankey, last edited by Daniel Ostermeier on Apr 10, 2006  (view change)
Labels: 
(None)

Pulse Manual Index

Ant Post-Processor

An ant post-processor can be used to detect errors reported in the output produced by the Apache Ant build tool. This post processor currently searches for error messages produced by ant itself (e.g. "BUILD FAILED"), as well as errors produced by the javac task. By default five lines of leading and trailing context will also be captured. On most operating systems, errors detected by this post-processor will not cause the build to fail (the exit code of the ant process is the preferred way to detect failure). The exception to this rule is Windows, where the default behaviour is to fail the build, as several versions of the ant.bat file on Windows do not exit with a non-zero code on error.

If you modify the ant.bat file to exit with the correct code, then you should set fail-on-error to false for your ant post-processor.

The ant post-processor is a subclass of the regular expression post-processor. All attributes and child elements available for regular expression post processors are also available for ant post-processors.

Ant post-processing is applied by default when using the ant command.

Attributes

Attribute Description Required? Default
name The name of this post-processor. Yes  

See also regex.pp.

Child Elements

See regex.pp.

Examples

A trivial ant post-processor:

<ant.pp name="ant.pp"/>

Increase the amount of leading context captured to ten lines, and disable fail-on-error (only applicable on Windows):

<ant.pp name="ant.pp" leading-context="10" fail-on-error="false"/>

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