Apache Ant Fail TaskThis task is used to stop current build and throw BuildException. It exits from the current build and displays an exception message to the console. The message attribute is used to set exception message to this element. Apache Ant Fail Task Attributes
Lets see some examples of Ant Fail Task which are given below. Apache Ant Fail Task ExampleWithout message Set message too Using unless Output: fail: BUILD FAILED unless=it is unless message Next TopicApache Ant Filter Task |