Dear Gitlab Users, for our upcoming upgrade to Gitlab v14, Gitlab will be unavailable on Thursday, 05.08.2021 from 5:00 pm to approximately 7:00 pm. Note that with v14, certain breaking changes will be introduced (https://about.gitlab.com/blog/2021/06/04/gitlab-moving-to-14-breaking-changes/).

Commit 2ab143d5 authored by mrodzis's avatar mrodzis 🌎
Browse files

Merge branch 'feature/#77-test-ant-version' into 'develop'

test for ant version

Closes #77

See merge request !57
parents 410ce306 b619dc2b
...@@ -7,6 +7,14 @@ ...@@ -7,6 +7,14 @@
<property file="build.properties"/> <property file="build.properties"/>
<xmlproperty file="expath-pkg.xml.tmpl"/> <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"> <target name="xar" depends="cleanup">
<copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true"> <copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true">
<filterset> <filterset>
...@@ -27,7 +35,8 @@ ...@@ -27,7 +35,8 @@
<delete dir="${test.dir}"/> <delete dir="${test.dir}"/>
</target> </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" /> <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" /> <untar src="${build.dir}/eXist-db-${project.processorversion}.tar.bz2" dest="${test.dir}" compression="bzip2" />
<setpermissions mode="755"> <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