forked from orientechnologies/orientdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
266 lines (230 loc) · 12.7 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="installg" name="orient-ant">
<!-- Copyright (c) 1999-2013 Orient Technologies LTD - LICENSE: Apache 2.0 -->
<property environment="env"/>
<property name="vendor" value="Orient Technologies Ltd"/>
<property name="product" value="OrientDB"/>
<property name="version" value="1.7.2"/>
<condition property="community.release" value="${releaseHome}/orientdb-community-${version}"
else="../releases/orientdb-community-${version}">
<isset property="releaseHome"/>
</condition>
<property name="env.ORIENTDB_HOME" value="${community.release}"/>
<buildnumber file="build.number"/>
<macrodef name="delegate">
<attribute name="target"/>
<sequential>
<subant target="@{target}">
<property name="global.lib" value="../${community.release}/lib"/>
<property name="version" value="${version}"/>
<fileset dir="commons" includes="build.xml"/>
<fileset dir="core" includes="build.xml"/>
<fileset dir="nativeos" includes="build.xml"/>
<fileset dir="object" includes="build.xml"/>
<fileset dir="enterprise" includes="build.xml"/>
<fileset dir="client" includes="build.xml"/>
<fileset dir="server" includes="build.xml"/>
<fileset dir="distributed" includes="build.xml"/>
<fileset dir="tools" includes="build.xml"/>
<fileset dir="graphdb" includes="build.xml"/>
<fileset dir="tests" includes="build.xml"/>
</subant>
<echo> ___ ___ ____ _ </echo>
<echo> .' `.|_ ||_ _| | | </echo>
<echo>/ .-. \ | |_/ / | | </echo>
<echo>| | | | | __'. |_| </echo>
<echo>\ `-' /_| | \ \_ _ </echo>
<echo> `.___.'|____||____| (_) </echo>
</sequential>
</macrodef>
<target name="init">
<echo> . </echo>
<echo> .` ` </echo>
<echo> , `:. </echo>
<echo> `,` ,:` </echo>
<echo> .,. :,, </echo>
<echo> .,, ,,, </echo>
<echo> . .,.::::: ```` ::::::::: :::::::::</echo>
<echo> ,` .::,,,,::.,,,,,,`;; .: :::::::::: ::: :::</echo>
<echo> `,. ::,,,,,,,:.,,.` ` .: ::: ::: ::: :::</echo>
<echo> ,,:,:,,,,,,,,::. ` ` `` .: ::: ::: ::: :::</echo>
<echo> ,,:.,,,,,,,,,: `::, ,, ::,::` : :,::` :::: ::: ::: ::: :::</echo>
<echo> ,:,,,,,,,,,,::,: ,, :. : :: : .: ::: ::: :::::::</echo>
<echo> :,,,,,,,,,,:,:: ,, : : : : .: ::: ::: :::::::::</echo>
<echo> ` :,,,,,,,,,,:,::, ,, .:::::::: : : .: ::: ::: ::: :::</echo>
<echo> `,...,,:,,,,,,,,,: .:,. ,, ,, : : .: ::: ::: ::: :::</echo>
<echo> .,,,,::,,,,,,,: `: , ,, : ` : : .: ::: ::: ::: :::</echo>
<echo> ...,::,,,,::.. `: .,, :, : : : .: ::::::::::: ::: :::</echo>
<echo> ,::::,,,. `: ,, ::::: : : .: ::::::::: ::::::::::</echo>
<echo> ,,:` `,,. </echo>
<echo> ,,, .,` </echo>
<echo> ,,. `, GRAPH DATABASE</echo>
<echo> `` `. COMMUNITY EDITION</echo>
<echo> `` www.orientdb.org</echo>
<echo> ` </echo>
<mkdir dir="${community.release}"/>
<mkdir dir="${community.release}/log"/>
<mkdir dir="${community.release}/databases"/>
</target>
<target name="clean" depends="init">
<delegate target="clean"/>
<delete dir="${community.release}"/>
</target>
<target name="compile" depends="init">
<delegate target="compile"/>
</target>
<target name="javadoc" depends="init">
<!-- YOU NEED TO INSTALL GRAPH-VIZ TO GENERATE UML DIAGRAMS, OTHERWISE DISABLE IT TO HAVE PLAIN JAVADOCS -->
<javadoc sourcepath="." packagenames="com.orientechnologies.*,com.tinkerpop.blueprints.*"
excludepackagenames="com.orientechnologies.core.storage.*,com.orientechnologies.core.iterator.*,com.orientechnologies.core.processor.*"
destdir="${community.release}/javadoc"
public="true"
useexternalfile="yes" linksource="yes" author="true" version="true" use="yes" verbose="no"
windowtitle="OrientDB Community Edition v${version} Javadocs"
header="<center><a href='http://www.orientdb.org' target='_parent'>OrientDB v${version} Javadocs</a>"
footer="<center>Copyrights 2010-2013 (c) <a href='http://www.orientechnologies.com' target='_parent'>Orient Technologies</a>. All Rights Reserved. This software is released as Open Source using the <a target='_parent' href='http://www.apache.org/licenses/LICENSE-2.0'>Apache 2.0 license</a>.</center>"
overview="overview.html"
maxmemory="4G">
<classpath>
<fileset dir=".">
<include name="object/lib/hibernate-jpa-2.0-api-1.0.0.Final.jar"/>
</fileset>
</classpath>
<fileset dir="." defaultexcludes="yes">
<include name="core/src/main/java/**/*.java"/>
<include name="object/src/main/java/**/*.java"/>
<include name="../../os/tinkerpop/blueprints/blueprints-core/src/main/java/**/*.java"/>
<include name="graphdb/src/main/java/**/*.java"/>
</fileset>
<doclet name="org.umlgraph.doclet.UmlGraphDoc" path="_base/lib/UmlGraph.jar">
<param name="-hide" value="java.*"/>
<param name="-collpackages" value="java.util.*"/>
<param name="-qualify"/>
<param name="-inferrel"/>
<param name="-inferdep"/>
<param name="-postfixpackage"/>
<param name="-nodefontsize" value="9"/>
<param name="-nodefontpackagesize" value="7"/>
<param name="-nodefontabstractname" value="Sans Not-Rotated"/>
<param name="-nodefontclassabstractname" value="Sans Not-Rotated"/>
<!-- -->
<param name="-link" value="http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/doclet/spec"/>
<param name="-link" value="http://java.sun.com/j2se/1.5/docs/api"/>
</doclet>
</javadoc>
</target>
<target name="install" depends="init">
<delegate target="install"/>
<copy todir="${community.release}/" flatten="true">
<fileset dir="." includes="*.txt"/>
</copy>
<copy todir="${community.release}/bin/" flatten="true" overwrite="true">
<fileset dir="."
includes="tools/script/*.sh tools/script/*.bat server/script/*.sh server/script/*.bat distributed/script/*.sh distributed/script/*.bat graphdb/script/*.sh graphdb/script/*.bat"/>
<filterset>
<filter token="VERSION" value="${version}"/>
<filter token="BUILD" value="${build.number}"/>
</filterset>
</copy>
<chmod perm="u+x" verbose="yes">
<fileset dir="${community.release}/bin">
<include name="**/*.sh"/>
</fileset>
</chmod>
<copy todir="${community.release}/www/">
<fileset dir="server/src/site"/>
</copy>
<copy todir="${community.release}/plugins/">
<fileset dir="server/plugins"/>
</copy>
<copy todir="${community.release}/config/" flatten="true" overwrite="true">
<fileset dir="." includes="tools/config/*"/>
<fileset dir="." includes="server/config/*"/>
<fileset dir="." includes="distributed/config/*"/>
<fileset dir="graphdb/config" includes="*.xml" erroronmissingdir="false"/>
</copy>
<copy todir="${community.release}/lib" flatten="true">
<fileset dir="distributed/lib" includes="*.jar"/>
<fileset dir="graphdb/lib" includes="*.jar"/>
</copy>
<copy todir="${community.release}/benchmarks" flatten="true">
<fileset dir="." includes="server/benchmarks/*"/>
</copy>
<delete dir="${community.release}/databases"/>
<java fork="true" dir="graphdb" classname="com.orientechnologies.orient.graph.blueprints.TestLoadGraph">
<classpath>
<fileset dir="${community.release}/lib" includes="*.jar"/>
</classpath>
</java>
<copy todir="${community.release}/databases/GratefulDeadConcerts" failonerror="false">
<fileset dir="graphdb/target/databases/GratefulDeadConcerts/" includes="*"/>
</copy>
<delete includeEmptyDirs="true">
<fileset dir="${community.release}/log/" includes="**/*"/>
</delete>
</target>
<target name="installg" depends="install">
</target>
<target name="md5" depends="init">
<checksum algorithm="MD5" fileext=".md5">
<fileset dir="${community.release}/lib">
<include name="*.jar"/>
</fileset>
</checksum>
<checksum algorithm="SHA" fileext=".sha1">
<fileset dir="${community.release}/lib">
<include name="*.jar"/>
</fileset>
</checksum>
</target>
<target name="test" depends="install">
<subant target="test">
<property name="global.lib" value="../${community.release}/lib"/>
<property name="orient.path" value="../${community.release}"/>
<fileset dir="tests" includes="build.xml"/>
</subant>
</target>
<target name="test-local" depends="install">
<subant target="test-local">
<property name="global.lib" value="../${community.release}/lib"/>
<property name="orient.path" value="../${community.release}"/>
<fileset dir="tests" includes="build.xml"/>
</subant>
</target>
<target name="test-plocal" depends="install">
<subant target="test-plocal">
<property name="global.lib" value="../${community.release}/lib"/>
<property name="orient.path" value="../${community.release}"/>
<fileset dir="tests" includes="build.xml"/>
</subant>
</target>
<target name="test-remote" depends="install">
<subant target="test-remote">
<property name="global.lib" value="../${community.release}/lib"/>
<property name="orient.path" value="../${community.release}"/>
<fileset dir="tests" includes="build.xml"/>
</subant>
</target>
<target name="stress-test">
<subant target="stress-test">
<property name="global.lib" value="../${community.release}/lib"/>
<property name="orient.path" value="../${community.release}"/>
<fileset dir="tests" includes="build.xml"/>
</subant>
</target>
<target name="release" depends="install">
<mkdir dir="${community.release}"/>
<delete file="../releases/orientdb-community-${version}.zip"/>
<zip destfile="../releases/orientdb-community-${version}.zip" basedir="../releases" level="9" update="false"
includes="orientdb-community-${version}/" excludes="**/*.log.*"/>
<tar destfile="../releases/orientdb-community-${version}.tar.gz" compression="gzip">
<tarfileset dir="../releases/orientdb-community-${version}">
<include name="**"/>
<exclude name="**/*.sh"/>
</tarfileset>
<tarfileset dir="../releases/orientdb-community-${version}" mode="755">
<include name="**/*.sh"/>
</tarfileset>
</tar>
</target>
</project>