forked from molgenis/molgenis_apps-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_animaldb.xml
61 lines (54 loc) · 2.29 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
<project>
<!-- 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="apps/sandbox" /-->
<pathelement location="modules/auth" />
<pathelement location="modules/pheno" />
<pathelement location="modules/file" />
<pathelement location="modules/datamodel" />
<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>
</project>