workspaceGetErrors
This task gets the errors for the entire workspace. It is a subset of the workspaceBuild task (it does not do a build, it just gets workspace errors regardless of how they were created).
Parameters
Attribute Description Required FailOnError Whether or not builds should fail if the project contains any errors No, default is true ShowErrors Whether or not to show the project errors in the ant build log No, default is true SeverityLevel The problem level to count and treat as a build error No, default is ERROR. May be ERROR, WARNING, or INFORMATION. CountValidationErrors Whether or not to count Validation problems as project Errors No, default is true PropertyCountName Property to receive the project error count No, default is WorkspaceErrorCount PropertyMessagesName Property to receive the project error messages No, default is WorkspaceErrorMessages Examples
- Retrieve and display the error+warning count and error+warning messages for "myProject":
<workspaceGetErrors SeverityLevel="WARNING" PropertyCountName="theWorkspaceErrorCount" PropertyMessagesName="theWorkspaceErrorMessages" /> <echo message="workspaceGetErrors: workspace Error+Warning Count=${theWorkspaceErrorCount} workspace Error+Warning Messages=${theWorkspaceErrorMessages}" />
Parent topic
Working with Ant
Related tasks
captureBuildMessages
compileWorkspace
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspacePreferenceFile
workspacePreferenceGet
workspacePreferenceSet