forked from molgenis/molgenis_apps-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_designgg.xml
54 lines (47 loc) · 1.71 KB
/
build_designgg.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
<project name="designgg">
<!-- this name is used to name the war file -->
<property name="app_name" value="designgg"/>
<!-- this holds all the settings for the generator -->
<property name="app_properties" value="apps/designgg/org/molgenis/designgg/designgg.properties" />
<!-- this determines what handwritten modules should be loaded -->
<path id="app.class.path">
<pathelement location="apps/designgg" />
<pathelement location="modules/_deprecated" />
<pathelement location="modules/webserver" />
</path>
<!-- import all tasks from build_common: clean, generate, compile, test, war, standalone-jar -->
<import file="build_common.xml"/>
<!--
Deploy help: run on a specific port, and on that port only
Usage: ant -f xqtl_dev.xml runOn -Dport=9000
-->
<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>
<!--
Wrapper: DesignGG Selenium web test.
Clean dirs, make application and run the test.
-->
<target name="clean_make_webtest" description="Make app and start the web test">
<antcall target="clean-generate-compile" />
<antcall target="webtest" />
</target>
<!--
Run DesignGG web test.
-->
<target name="webtest" description="Start the Selenium test">
<testng haltOnFailure="true">
<classfileset dir="${build.molgenis_apps.dir}" includes="**/DesignGGSeleniumTest.class"/>
<classpath>
<path refid="molgenis.classpath" />
<path location="${build.molgenis_apps.dir}" />
</classpath>
</testng>
</target>
</project>