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

    <available property="Ant-1.7.0-or-later"
               classname="org.apache.tools.ant.types.ResourceCollection"/>

path: /en/Apache/Ant | #

Since "ant junit4" is the search string that's sending most search engine traffic my way, I should point out that Ant 1.7.0 has been released a few hours ago. It is supposed to support JUnit4 as well as JUnit3 out of the box. As an added bonus, junit.jar no longer needs to sit in ANT_HOME/lib or similar, you can now simply add it to your <junit>'s tasks nested <classpath>.

path: /en/Apache/Ant | #