code: public final boolean isActive(final org.apache.tools.ant.Project p) throws BuildException {
      if (this.name == null) {
        throw new BuildException("<define> is missing name attribute");
      }
      return CUtil.isActive(p, this.ifCond, this.unlessCond);
    }
docs: Returns true if the define's if and unless conditions (if any) are
  satisfied.
  
  @exception BuildException
  throws build exception if name is not set