Keeping with a longer tradition here is how to detect Ant 1.7.1 or later:

    <available property="Ant-1.7.1-or-later"
               classname="org.apache.tools.ant.input.SecureInputHandler"/>

path: /en/Apache/Ant | #