<target name="-pre-compile"> <get src="http://hsql.sourceforge.net/m2-repo/com/h2database/h2/1.2.128/h2-1.2.128.jar" dest="lib/h2-stable.jar" usetimestamp="true" skipexisting="true" /> </target>
Ant 1.7 (or earlier) equivalent would be something like this:
<target name="-pre-compile"> <available property="exists.h2" file="lib/h2-stable.jar" /> <antcall target="get-h2" /> </target> <target name="get-h2" unless="exists.h2"> <get src="http://hsql.sourceforge.net/m2-repo/com/h2database/h2/1.2.128/h2-1.2.128.jar" dest="lib/h2-stable.jar" usetimestamp="true" /> </target>