forked from bytemine/bytemine-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-manager-rpm.xml
44 lines (29 loc) · 1.38 KB
/
build-manager-rpm.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="bytemine-manager-rpm" default="build-tar" basedir=".">
<description>Builds the project Manager.</description>
<property name="rpm-build-dir" value="${basedir}/RPM_BUILD"/>
<import file="build.xml"/>
<target name="prepare-rpm-dirs" description="Creates the directories needed to build the RPM">
<mkdir dir="${rpm-build-dir}"/>
</target>
<target name="build-tar" depends="prepare-rpm-dirs, set-release, prepare-db, export-schema, jar, starter-jar" 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 documentation -->
<copy file="${readme}" todir="${dist-temp-dir}"/>
<copy file="${manual-de}" tofile="${dist-temp-dir}/manual-de.pdf"/>
<copy file="${manual-en}" tofile="${dist-temp-dir}/manual-en.pdf"/>
<!-- move everything into a new directory to zip -->
<move todir="${dist-temp-dir}/${zip-dir}">
<fileset dir="${dist-temp-dir}"/>
</move>
<!-- tar the created directory -->
<tar destfile="${rpm-build-dir}/${name}-${version_filename}.tar" basedir="${dist-temp-dir}/${name}-${version_filename}" excludes="${svn.properties}"/>
<!-- clean up -->
<antcall target="clean"></antcall>
</target>
</project>