BTTBuildTask class creates the following properties (via getProject().setProperty(...) API) in case there are warnings:
▪ nbrOfWarnings: it contains the number of files with warning result from UDTT build.
▪ hasWarnings: it is "true" if there are one or more files with warning result.
It also creates the following properties in case there are errors:
▪ nbrOfErrors: it contains the number of files with error result.
▪ hasErrors: it is "true" if there are one or more files with error result.
It is considered an error not just when a UDTT build is invoked and its result is an error, but also some other situations that do not allow to execute the UDTT build because there is an inconsistent situation such as: the project to be generated does not exist, the project to be generated does not have UDTT nature, the channel value is not correct, the file to be generated is in a non-UDTT project and so on.
Therefore, tasks executed after BTTBuildTask can get these properties values and act according to them. For example:
▪ using if and unless Ant parameters (a task or target is executed based on the existence or not of a property). For example: