Commit b619dc2b authored by Mathias Goebel's avatar Mathias Goebel 🎠

test for ant version

parent 410ce306
......@@ -7,6 +7,14 @@
<property file="build.properties"/>
<xmlproperty file="expath-pkg.xml.tmpl"/>
<antversion property="antversion"/>
<target name="antversion-test">
<antversion property="antversionReady" atleast="1.10"/>
<fail unless="antversionReady">installed version of ant (${antversion}) is lower than the required one (1.10.0)</fail>
<echo message="installed version of ant (${antversion}) is satisfying"/>
</target>
<target name="xar" depends="cleanup">
<copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true">
<filterset>
......@@ -27,7 +35,8 @@
<delete dir="${test.dir}"/>
</target>
<target name="test" depends="xar">
<target name="test" depends="antversion-test, xar">
<!-- task setpermissions requries at least ant 1.10.0 -->
<get src="https://bintray.com/existdb/releases/download_file?file_path=eXist-db-${project.processorversion}.tar.bz2" dest="${build.dir}/eXist-db-${project.processorversion}.tar.bz2" skipexisting="true" />
<untar src="${build.dir}/eXist-db-${project.processorversion}.tar.bz2" dest="${test.dir}" compression="bzip2" />
<setpermissions mode="755">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment