-
Notifications
You must be signed in to change notification settings - Fork 11
/
build-manager-deb.xml
52 lines (37 loc) · 1.78 KB
/
build-manager-deb.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<project name="bytemine-manager-deb" default="build-release" basedir=".">
<description>Builds the project Manager.</description>
<property name="install-dir" location="/usr/share/java"/>
<import file="build.xml"/>
<!-- builds the complete release zip file -->
<target name="build-release" depends="set-release, prepare-db, export-schema, jar, copy-jar, clean" description="builds a complete release zip file">
<antcall target="prepare-db"></antcall>
<!-- copy libraries -->
<copy todir="${dist-lib-dir}">
<fileset dir="${lib-dir}"/>
</copy>
<mkdir dir="${dist-temp-dir}/${export-dir}"/>
<!-- copy templates -->
<copy file="${vpn-user-template}" todir="${dist-temp-dir}/${template-dir}" />
<copy file="${vpn-server-template}" todir="${dist-temp-dir}/${template-dir}" />
<!-- copy documentation -->
<copy file="${readme}" todir="${dist-temp-dir}"/>
<copy file="${manual-de}" tofile="${dist-temp-dir}/manual-de.pdf" failonerror="false"/>
<copy file="${manual-en}" tofile="${dist-temp-dir}/manual-en.pdf" failonerror="false"/>
<!-- move everything into a new directory to zip -->
<move todir="${dist-temp-dir}/${zip-dir}">
<fileset dir="${dist-temp-dir}"/>
</move>
<!-- zip the created directory -->
<zip
destfile="${dist-customer-dir}/${name}-${version_filename}${zip-extension}"
basedir="${dist-temp-dir}"
compress="false"
excludes="${svn.properties}"
/>
</target>
<!-- copies the created jar to main dir. gets removed by the clean task in debian/rules -->
<target name="copy-jar" description="copies the created jar to main dir. gets removed by the clean task in debian/rules">
<copy file="${dist-temp-dir}/${name}-${version}${jar-extension}" tofile="${name}${jar-extension}"/>
</target>
</project>