I am trying to figure out which Apache Ant version is running on the Jenkins server. Starting from Apache Ant 1.7.0, you can make use of the <Antversion> task to determine the running Ant version. The following is a simple build.xml which could serve this purpose.
<project name="ant-antversion-example" default="run" basedir="."> <target name="run"> <echo message="Checking ANT version ..."/> <antversion property="antversion"/> <echo message=" version: ${antversion}"/> </target> </project>
Done =)
Reference Apache Ant – <Antversion>
Filed under: Ant Tagged: Ant
