forked from bridgedb/BridgeDb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
129 lines (117 loc) · 4.37 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
<?xml version="1.0"?>
<project name="bridgedb" default="dist" basedir=".">
<property file="org.bridgedb/version.props"/>
<property name="svn.exec.svnversion" value="svnversion"/>
<macrodef name="iterate">
<attribute name="target"/>
<sequential>
<subant target="@{target}">
<filelist dir=".">
<!-- NOTE: order is important! -->
<file name="org.bridgedb/build.xml"/>
<file name="org.bridgedb.bio/build.xml"/>
<file name="org.bridgedb.file.orthoxml/build.xml"/>
<file name="org.bridgedb.rdb/build.xml"/>
<file name="org.bridgedb.rdb.construct/build.xml"/>
<file name="org.bridgedb.tools.batchmapper/build.xml"/>
<file name="org.bridgedb.server/build.xml"/>
<file name="org.bridgedb.webservice.uniprot/build.xml"/>
<file name="org.bridgedb.webservice.picr/build.xml"/>
<file name="org.bridgedb.webservice.cronos/build.xml"/>
<file name="org.bridgedb.webservice.synergizer/build.xml"/>
<file name="org.bridgedb.webservice.biomart/build.xml"/>
<file name="org.bridgedb.webservice.bridgerest/build.xml"/>
<file name="org.bridgedb.gui/build.xml"/>
</filelist>
</subant>
</sequential>
</macrodef>
<target name="build">
<iterate target="dist"/>
</target>
<target name="dist" depends="doc, build">
<iterate target="dist"/>
<property name="zipbase" value="bridgedb-${bridgedb.version}"/>
<zip destfile="${zipbase}.zip">
<zipfileset dir="." prefix="bridgedb-${bridgedb.version}">
<include name="batchmapper.sh"/>
<include name="batchmapper.bat"/>
<include name="start-server.sh"/>
<include name="dist/*.jar"/>
<exclude name="dist/org.bridgedb.tests.metabolites.jar"/>
<include name="LICENSE-2.0.txt"/>
<include name="README.txt"/>
<include name="apidoc"/>
<include name="org.bridgedb.server/gdb.config.template"/>
<include name="org.bridgedb.server/contrib/bridgedb-example.*"/>
</zipfileset>
</zip>
<tar destfile="${zipbase}.tar.gz" compression="gzip">
<zipfileset src="${zipbase}.zip"/>
</tar>
<property name="zipbase2" value="bridgedb-${bridgedb.version}-src"/>
<zip destfile="${zipbase2}.zip">
<zipfileset dir="." prefix="bridgedb-${bridgedb.version}-src">
<include name="batchmapper.sh"/>
<include name="batchmapper.bat"/>
<include name="start-server.sh"/>
<include name="LICENSE-2.0.txt"/>
<include name="README.txt"/>
<include name="apidoc"/>
<include name="org.bridgedb/version.props"/>
<include name="build-common.xml"/>
<include name="**/build.xml"/>
<include name="**/META-INF/MANIFEST.MF"/>
<include name="org.bridgedb.webservice.biomart/src/org/bridgedb/webservice/biomart/util/filterconversion.txt"/>
<include name="org.bridgedb.bio/resources/**/*"/>
<include name="**/*.java"/>
<include name="**/*.jar"/>
<include name="org.bridgedb.tools.benchmarking/*.txt"/>
<exclude name="dist/*.jar"/>
<include name="org.bridgedb.server/gdb.config.template"/>
<include name="org.bridgedb.server/contrib/bridgedb-example.pl"/>
<include name="org.bridgedb.server/contrib/bridgedb-example.py"/>
</zipfileset>
</zip>
<tar destfile="${zipbase2}.tar.gz" compression="gzip">
<zipfileset src="${zipbase2}.zip"/>
</tar>
</target>
<target name="clean">
<iterate target="clean"/>
<delete dir="apidoc"/>
</target>
<target name="test" depends="build">
<iterate target="test"/>
</target>
<target name="dist-clean">
<iterate target="dist-clean"/>
<delete dir="apidoc"/>
<delete dir="dist"/>
</target>
<target name="doc">
<mkdir dir="apidoc"/>
<tstamp /> <!-- set ${TODAY} and ${TSTAMP} -->
<exec executable="${svn.exec.svnversion}" outputproperty="subversion_revision" failifexecutionfails="false">
<arg line="-n ."/>
</exec>
<javadoc destdir="apidoc"
doctitle="BridgeDb"
header="Revision ${subversion_revision}"
footer="Generated ${TODAY}">
<package name="org.bridgedb"/>
<package name="org.bridgedb.bio"/>
<package name="org.bridgedb.file"/>
<package name="org.bridgedb.rdb"/>
<package name="org.bridgedb.rdb.construct"/>
<package name="org.bridgedb.webservice"/>
<package name="org.bridgedb.webservice.biomart"/>
<sourcepath>
<pathelement location="org.bridgedb/src"/>
<pathelement location="org.bridgedb.rdb/src"/>
<pathelement location="org.bridgedb.rdb.construct/src"/>
<pathelement location="org.bridgedb.bio/src"/>
</sourcepath>
</javadoc>
</target>
</project>