net.sf.antcontrib.logic
Class Assert

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--net.sf.antcontrib.logic.Assert
All Implemented Interfaces:
org.apache.tools.ant.TaskContainer

public class Assert
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.TaskContainer

Based on the Sequential task. Similar to Java's 'assert' keyword, verifies that a given property has a given value. Throws a BuildException if the property value is not as expected or the property does not exist.

Also like Java's 'assert' keyword, the Assert task must be 'turned on' using the property "ant.enable.asserts". If not set, or is set to false, the Assert task works exactly like the Sequential task.

Can hold other tasks including Assert. Attributes: