forked from molgenis/molgenis_apps-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_animaldb.xml
83 lines (70 loc) · 3.22 KB
/
build_animaldb.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
<project name="animaldb">
<!-- this name is used to name the war file -->
<property name="app_name" value="animaldb"/>
<!-- this holds all the settings for the generator -->
<property name="app_properties" value="apps/animaldb/org/molgenis/animaldb/animaldb.properties" />
<!-- this determines what handwritten modules should be loaded -->
<path id="app.class.path">
<pathelement location="apps/animaldb" />
<pathelement location="modules/_deprecated" />
<pathelement location="modules/auth" />
<pathelement location="modules/pheno" />
<pathelement location="modules/file" />
<pathelement location="modules/datamodel" />
<pathelement location="modules/datatable"/>
<pathelement location="modules/settings" />
<pathelement location="modules/import"/>
<pathelement location="modules/news"/>
<pathelement location="modules/webserver"/>
<pathelement location="modules/matrix"/>
<pathelement location="modules/batch"/>
<pathelement location="modules/search"/>
<pathelement location="modules/protocol"/>
<pathelement location="modules/decorators/core" />
<pathelement location="modules/decorators/auth" />
<pathelement location="modules/decorators/pheno" />
<pathelement location="modules/news" />
</path>
<!-- import all tasks from build_common: clean, generate, compile, test, war, standalone-jar -->
<import file="build_common.xml"/>
<!-- copied from build_common but added animaldb specific tests -->
<target name="test">
<!-- combine classpaths -->
<path id="combined.class.path">
<path refid="molgenis.classpath" />
<path refid="app.class.path" />
<path location="${output_src}" />
</path>
<!-- run the tests -->
<testng classpathref="combined.class.path" outputDir="${testng.report.dir}" haltOnFailure="true">
<xmlfileset dir="${build.molgenis_apps.dir}" includes="**/*testng.xml" />
<classfileset dir="${build.molgenis_apps.dir}" includes="**/AnimaldbSeleniumTest.class" />
<jvmarg value="-ea" />
<jvmarg value="-Xmx1512m" />
</testng>
</target>
<target name="runOn" description="Start the application">
<java maxmemory="512m" classname="boot.RunStandalone" fork="yes" failonerror="true">
<arg value="${port}"/>
<classpath>
<path refid="molgenis.classpath" />
<path location="${build.molgenis_apps.dir}" />
</classpath>
</java>
</target>
<target name="compile">
<pathconvert property="app_src" refid="app.class.path" pathsep=":">
<map from="${basedir}/" to="" />
</pathconvert>
<fail unless="app_src">app.class.path is not set. Did you use the right build_xyz.xml?</fail>
<echo message="compile :${output_src}:${app_src}" />
<!-- compile the generated results, use fork to run it with its own memory settings -->
<!-- NB: under Windows, forking works only if the javac path is in your PATH variable -->
<javac fork="true" srcdir="${output_src}:${app_src}" destdir="${build.molgenis_apps.dir}" nowarn="on" memoryinitialsize="256m" memorymaximumsize="512m" debug="true">
<classpath refid="molgenis.classpath" />
<exclude name="**/BinaryTupleTable.java" />
<exclude name="**/JQGridPlugin_xQTL.java" />
<exclude name="**/JQGridPluginPedMap.java" />
</javac>
</target>
</project>