This repository has been archived by the owner on May 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
70 lines (54 loc) · 1.97 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
<project name="JsTestEnv" default="assemble">
<property name="build" value="${basedir}/build"/>
<property name="dist" value="${basedir}/dist"/>
<property name="libs" value="${basedir}/libs"/>
<property name="production-libs" value="${libs}/production"/>
<property name="test-libs" value="${libs}/test"/>
<property name="user.name" value="chilicat"/>
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="assemble">
<ant dir="JsChilicatParser" target="assemble"/>
<ant dir="JsChilicatServer" target="assemble"/>
<ant dir="JsChilicat" target="assemble"/>
</target>
<target name="test">
<mkdir dir="${build}/junit"/>
<ant dir="JsChilicatParser" target="test"/>
<ant dir="JsChilicatServer" target="test"/>
<ant dir="JsChilicat" target="test"/>
</target>
<target name="report" depends="test">
<junitreport todir="${build}/junit">
<fileset dir="${build}/junit">
<include name="**/TEST-*.xml"/>
</fileset>
<report format="frames" todir="${dist}/junit/html"/>
</junitreport>
</target>
<target name="sf-dist" depends="clean, assemble, report, sf-dist-clean">
<copy todir="sf-dist/libs/">
<fileset dir="${dist}/production">
<include name="**/*.jar"/>
</fileset>
</copy>
<copy todir="sf-dist/libs/external">
<fileset dir="${production-libs}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="sf-dist/libs/external">
<fileset dir="${production-libs}/selenium">
<include name="*.jar"/>
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="sf-dist-clean">
<delete dir="sf-dist/libs/" />
</target>
</project>