-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
136 lines (112 loc) · 4.4 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
<?xml version="1.0" encoding="UTF-8"?>
<!--+
|
| Google Refine BioVeL Extension Build File
|
+-->
<project name="refine-biovel-extension" default="build" basedir=".">
<property environment="env"/>
<property name="javac.source" value="1.6"/>
<property name="javac.target" value="1.6"/>
<property file="./module/MOD-INF/module.properties" />
<!-- version comes from ./module/MOD-INF/module.properties-->
<condition property="version" value="trunk">
<not><isset property="version"/></not>
</condition>
<condition property="revision" value="rXXXX">
<not><isset property="revision"/></not>
</condition>
<condition property="full_version" value="0.0.0.0">
<not><isset property="full_version"/></not>
</condition>
<condition property="dist.dir" value="dist">
<not><isset property="dist.dir"/></not>
</condition>
<property name="fullname" value="${name}-${version}-${revision}" />
<echo message="${basedir}" />
<property name="refine.dir" value="${basedir}/../../main" />
<property name="refine.server.dir" value="${basedir}/../../server" />
<property name="refine.webinf.dir" value="${refine.dir}/webapp/WEB-INF" />
<property name="refine.modinf.dir" value="${refine.dir}/webapp/modules/core/MOD-INF" />
<property name="refine.classes.dir" value="${refine.webinf.dir}/classes" />
<property name="refine.lib.dir" value="${refine.webinf.dir}/lib" />
<property name="src.dir" value="${basedir}/src" />
<property name="module.dir" value="${basedir}/module" />
<property name="modinf.dir" value="${module.dir}/MOD-INF" />
<property name="lib.dir" value="${modinf.dir}/lib" />
<property name="refine.server.lib.dir" value="${refine.server.dir}/lib" />
<property name="classes.dir" value="${modinf.dir}/classes" />
<!-- <property name="dld.beta.dir" value="/mnt/bgbm_biovel/public/beta/refine" /> -->
<property name="dld.dir" value="/mnt/bgbm_biovel/public/refine" />
<path id="class.path">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${refine.lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${refine.server.lib.dir}">
<include name="**/*.jar" />
</fileset>
<pathelement path="${refine.classes.dir}"/>
</path>
<target name="build_java">
<mkdir dir="${classes.dir}" />
<javac encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no" target="${javac.target}" source="${javac.source}">
<src path="${src.dir}"/>
<classpath refid="class.path" />
</javac>
</target>
<target name="build" depends="build_java"/>
<target name="package" depends="clean,build">
<zip destfile="${basedir}/../../dist/biovel.zip"
basedir="${basedir}"
includes="*/**"
excludes="**/src/**"
/>
<exec dir="${basedir}/../.." executable="${basedir}/../../refine">
<arg value="dist"/>
<arg value="2.5.0"/>
</exec>
</target>
<target name="deploy_beta" depends="package">
<mkdir dir="${dld.dir}/${version}" />
<copy
file="${basedir}/../../dist/biovel.zip"
todir="${dld.dir}/${version}"
overwrite="true"
/>
<copy todir="${dld.dir}/${version}" overwrite="true">
<fileset dir="${basedir}/../../dist">
<include name="google-refine-*.tar.gz"/>
<include name="google-refine-*.zip"/>
<include name="google-refine-*.dmg"/>
</fileset>
</copy>
<copy
file="./module/MOD-INF/module.properties"
todir="${dld.dir}/${version}"
overwrite="true"
/>
</target>
<target name="deploy_stable" depends="deploy_beta">
<copy
file="${basedir}/../../dist/biovel.zip"
todir="${dld.dir}"
overwrite="true"
/>
<copy
file="./module/MOD-INF/module.properties"
todir="${dld.dir}"
overwrite="true"
/>
</target>
<target name="clean">
<delete dir="${classes.dir}" />
<delete>
<fileset dir="${basedir}/../../dist">
<include name="*"/>
</fileset>
</delete>
</target>
</project>