Assert doesn't support the nested "echo"

Help
2007-02-07
2013-04-24
  • Hi,

    I was trying ant-contrib for a first time (v. 1.0b3) and I can't seem to set an assert condition as shown in the examples - http://ant-contrib.sourceforge.net/tasks/tasks/index.html. I always get the following error,

    BUILD FAILED
    C:\Work\Builds\CALMS_v3.1\build.xml:533: Class net.sf.antcontrib.logic.Assert doesn't support the nested "echo" element.

    Does anyone have any idea what am I doing wrong? Here is the target,

    <target name="ear-prep" description="Prepare EAR">
    .....................
        <assert name="jdbc.datasource">
            <echo message="jdbc set"/>
        </assert>
    ...........................
    </target>

    Thanks,
    -Ivan