-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
83 lines (68 loc) · 3.33 KB
/
build.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="."
name="HyperGraphDB"
default="all"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<description>HyperGraphDB Top Build File</description>
<property name="version" value="1.3-SNAPSHOT" />
<!-- The directory containing library jar files -->
<property name="jars" value="${basedir}" />
<target name="timestamp">
<!-- Create the time stamp -->
<tstamp />
</target>
<target name="init" depends="timestamp">
</target>
<target name="build-core">
<artifact:mvn pom="core/pom.xml">
<arg value="package"/>
</artifact:mvn>
</target>
<target name="build-bdbnative">
<artifact:mvn pom="storage/bdb-native/pom.xml">
<arg value="package"/>
</artifact:mvn>
</target>
<target name="build-bdbje">
<artifact:mvn pom="storage/bdb-je/pom.xml">
<arg value="package"/>
</artifact:mvn>
</target>
<target name="build-p2p">
<artifact:mvn pom="storage/bdb-p2p/pom.xml">
<arg value="package"/>
</artifact:mvn>
</target>
<target name="dist-common" depends="build-core, build-p2p, build-bdbnative, build-bdbje" description="Create common files for all platform distributions.">
<delete dir="${distfilename}"/>
<mkdir dir="${distfilename}"/>
<copydir src="${javadoc}" dest="${distfilename}/javadoc"/>
<copydir src="src" dest="${distfilename}/src" excludes="**/.svn"/>
<copydir src="jars" dest="${distfilename}/jars" excludes="**/.svn"/>
<copydir src="ThirdPartyLicensing" dest="${distfilename}/ThirdPartyLicensing" excludes="**/.svn"/>
<copy file="LicensingInformation" todir="${distfilename}"/>
<copy file="readme.html" todir="${distfilename}"/>
<copy file="build.xml" todir="${distfilename}"/>
<copy file="${jars}/${jar-name}" todir="${distfilename}"/>
<copy file="${jars}/${peer-jar-name}" todir="${distfilename}"/>
<copy file="${jars}/${full-jar-name}" todir="${distfilename}"/>
</target>
<target name="dist-win" depends="dist-common" description="Create MS Windows distribution.">
<delete dir="${distfilename}/native"/>
<mkdir dir="${distfilename}/native"/>
<copydir src="native/windows" dest="${distfilename}/native"/>
<zip destfile="${dist}/${distfilename}.zip" basedir="." includes="${distfilename}/**"/>
</target>
<target name="dist-lin" depends="dist-common" description="Create Linux distribution">
<delete dir="${distfilename}/native"/>
<mkdir dir="${distfilename}/native"/>
<copydir src="native/linux" dest="${distfilename}/native"/>
<tar destfile="${dist}/${distfilename}.tar.gz" compression="gzip" basedir="." includes="${distfilename}/**"/>
</target>
<target name="dist-mac" depends="dist-common" description="Create MacOS distribution">
<delete dir="${distfilename}/native"/>
<mkdir dir="${distfilename}/native"/>
<copydir src="native/macos" dest="${distfilename}/native"/>
<tar destfile="${dist}/${distfilename}-macos.tar.gz" compression="gzip" basedir="." includes="${distfilename}/**"/>
</target>
</project>