captureBuildMessages

This task captures Ant build messages and allows them to be searched or displayed, and allows conditional Ant build failures depending on whether or not a specified string is in the captured build messages.

Parameters

Attribute Description Required
action The capturing action to be performed Yes. May be one of the following:
  • start
  • stop
  • getAllMessages
  • findMessage
  • FailOnErrorMessagePresent
  • FailOnErrorMessageMissing
MessageLevel The level of Ant build messages to capture No, default is Information. May be error, warning, information, debug, or verbose.
SearchString A string to be searched for (only valid for findMessage or FailOnErrorMessagePresent or FailOnErrorMessageMissing) Yes (for search actions)
PropertyMessagesName Property to receive Get/Search action Message result No, default is BuildMessages
ErrorPrefixMessage A string prefix to be output before any FailOnError failure message No

Examples

Related tasks
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceGet
workspacePreferenceSet

Feedback