Tue, 09. Feb 2010
So Apache Ant 1.8.0 is out and I'm supposed to follow a tradition I started with Ant 1.6.2. If you can be sure that you are at least using Ant 1.7.0 then the built-in <antversion> task/condition will do:
<antversion property="Ant-1.8.0-or-later" atleast="1.8.0"/>
otherwise the trick of checking for a class that has been introduced with Ant 1.8.0 can always be used:
<available property="Ant-1.8.0-or-later" classname="org.apache.tools.ant.types.resources.MappedResource"/>
path: /en/Apache/Ant | #