-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.xml
115 lines (89 loc) · 3.79 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
<project name="public-core" default="zip-nojre">
<dirname property="public.core.basedir" file="${ant.file.public-core}"/>
<property name="core.src.dir" location="${public.core.basedir}/src"/>
<property name="core.src.lib.dir" location="${public.core.basedir}/lib"/>
<property name="core.test.dir" location="${public.core.basedir}/test"/>
<property name="core.test.lib.dir" location="${public.core.basedir}/testLib"/>
<property name="dist.dir" location="${public.core.basedir}/dist"/>
<property name="build.dir" location="${public.core.basedir}/build"/>
<property name="product" value="RTG Core Non-Commercial" />
<property name="product.repo" value="RealTimeGenomics/rtg-core" />
<property name="resources" value="core" />
<!-- Location of RTG Tools source, here we assume the repo is parallel to rtg-core -->
<property name="public.tools.basedir" location="${public.core.basedir}/../rtg-tools"/>
<!-- Import the tools build.xml -->
<import file="${public.tools.basedir}/build.xml"/>
<!-- Override any resource collections we need to modify -->
<!-- These jars are needed at run time -->
<fileset id="core.runtime.libs" dir="${core.src.lib.dir}">
<include name="Jama-1.0.3.jar" />
</fileset>
<path id="core.runtime.classpath">
<pathelement path="${core.src.dir}" />
</path>
<path id="core.runtime.test.classpath">
<pathelement path="${core.test.dir}" />
</path>
<union id="core.jar-src">
<fileset dir="${core.src.dir}">
<include name="com/**/*.properties"/>
<include name="com/rtg/report/resources/*"/>
<include name="com/rtg/metagenomics/krona/resources/krona-2.0.js" />
<include name="com/rtg/metagenomics/krona/resources/hidden.png" />
<include name="com/rtg/metagenomics/krona/resources/loading.gif" />
</fileset>
<zipfileset src="${core.src.lib.dir}/Jama-1.0.3.jar" excludes="META-INF/**"/>
</union>
<union id="core.jar-test">
<fileset dir="${core.test.dir}">
<include name="com/**/*.txt"/>
<include name="com/**/*.properties"/>
<include name="com/rtg/**/resources/**/*"/>
<include name="com/rtg/mode/BLOSUM*" />
<include name="com/rtg/util/testFile"/>
<include name="com/rtg/util/cli/spell.*"/>
</fileset>
</union>
<path id="src.path">
<pathelement path="${core.src.dir}" />
<pathelement path="${tools.src.dir}" />
</path>
<path id="test.path">
<pathelement path="${core.test.dir}" />
<pathelement path="${tools.test.dir}" />
</path>
<union id="runtime.libs">
<resources refid="core.runtime.libs"/>
<resources refid="tools.runtime.libs"/>
</union>
<path id="runtime.classpath">
<resources refid="core.runtime.classpath"/>
<resources refid="tools.runtime.classpath"/>
</path>
<path id="runtime.test.classpath">
<resources refid="core.runtime.test.classpath"/>
<resources refid="tools.runtime.test.classpath"/>
</path>
<union id="jar-src">
<resources refid="tools.jar-src"/>
<resources refid="core.jar-src"/>
</union>
<union id="jar-test">
<resources refid="tools.jar-test"/>
<resources refid="core.jar-test"/>
</union>
<union id="zip.text">
<resources refid="tools.zip.text"/>
<file file="${public.core.basedir}/LICENSE.txt"/>
</union>
<zipfileset id="avr-resources" dir="${public.core.basedir}/installer/resources" includes="models/**/*" />
<union id="core-resources">
<fileset refid="common-resources" />
<fileset refid="avr-resources" />
<fileset dir="${public.core.basedir}/installer/resources/core"/>
</union>
<!-- Override or extra targets -->
<target name="rtg-core.jar" depends="compile-src,set-rtg-build-version,set-rtg-build-product" description="Core jar.">
<rtg-jar main="com.rtg.RtgCore" file="${build.dir}/rtg-core.jar" refid="jar-src"/>
</target>
</project>