Commit cd87b6b6 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

attach build system to the code

parent afbf2dd7
......@@ -6,6 +6,7 @@ local.build.properties
##########################
build/
expath-pkg.xml
test/
.DS_STORE
=======
......@@ -2,4 +2,7 @@ project.name=http://textgrid.de/ns/SADE-fontane-develop
project.version=3.2.3
project.title=[Fontane] SADE
project.abbrev=SADE-fontane-develop
project.processorversion=4.3.1
project.processorversion=4.4.0
destfile=${build.dir}/${project.abbrev}-${project.version}.xar
test.dir=test
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="SADE">
<property environment="env"/>
<property file="local.build.properties"/>
<property file="build.properties"/>
<property name="build.dir" value="build"/>
<xmlproperty file="expath-pkg.xml.tmpl"/>
<target name="xar">
<project default="xar" name="SADE" xmlns:xdb="http://exist-db.org/ant">
<property environment="env"/>
<property name="build.dir" value="build"/>
<property file="local.build.properties"/>
<property file="build.properties"/>
<xmlproperty file="expath-pkg.xml.tmpl"/>
<target name="xar" depends="cleanup">
<copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true">
<filterset>
<filter token="project.version" value="${project.version}"/>
......@@ -17,14 +18,27 @@
</filterset>
</copy>
<mkdir dir="${build.dir}"/>
<zip basedir="." destfile="${build.dir}/${project.abbrev}-${project.version}.xar"
excludes="${build.dir}/*"/>
<zip basedir="." destfile="${destfile}"
excludes="${build.dir}/*,${test.dir}/*"/>
</target>
<target name="dependencies">
<get src="https://ci.de.dariah.eu/exist-repo/find.zip?abbrev=cv&amp;processor=${project.processorversion}" dest="${build.dir}/codeview-latest.xar" verbose="on" ignoreerrors="true"/>
<get src="http://exist-db.org/exist/apps/public-repo/find.zip?abbrev=markdown&amp;processor=${project.processorversion}" dest="${build.dir}/markdown-latest.xar" verbose="on" ignoreerrors="true"/>
<get src="http://exist-db.org/exist/apps/public-repo/find.zip?abbrev=monex&amp;processor=${project.processorversion}" dest="${build.dir}/monex-latest.xar" verbose="on" ignoreerrors="true"/>
<target name="cleanup">
<delete dir="${test.dir}"/>
</target>
<target name="test" depends="xar">
<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" />
<get src="https://ci.de.dariah.eu/exist-repo/find.zip?abbrev=cv&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/codeview-latest.xar" ignoreerrors="true"/>
<get src="https://ci.de.dariah.eu/exist-repo/find.zip?abbrev=tgconnect-develop&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/tgconnect-develop-latest.xar" ignoreerrors="true"/>
<get src="https://ci.de.dariah.eu/exist-repo/find.zip?abbrev=fontane-develop&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/fontane-develop-latest.xar" ignoreerrors="true"/>
<get src="https://ci.de.dariah.eu/exist-repo/find.zip?abbrev=fontane-lucene-exist-module&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/fontane-lucene-latest.xar" ignoreerrors="true"/>
<get src="http://exist-db.org/exist/apps/public-repo/find.zip?abbrev=markdown&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/markdown-latest.xar" ignoreerrors="true"/>
<get src="http://exist-db.org/exist/apps/public-repo/find.zip?abbrev=xqjson&amp;processor=${project.processorversion}" dest="${test.dir}/eXist-db-${project.processorversion}/autodeploy/xqjson-latest.xar" ignoreerrors="true"/>
<copy file="${destfile}" todir="${test.dir}/eXist-db-${project.processorversion}/autodeploy" />
</target>
</project>
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