forked from gsitgithub/SubMicroTrading
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.local.xml
104 lines (83 loc) · 5.39 KB
/
build.local.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
<project name="MyProject" default="dist" basedir=".">
<description>SMT Build </description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="antdist"/>
<property name="test.dir" location="src" />
<property name="test.report.dir" location="TestReport" />
<path id="build.classpath">
<fileset dir="../Core/exlib">
<include name="**/*.jar" />
</fileset>
</path>
<path id="junit.class.path">
<path refid="build.classpath"/>
<pathelement location="${build}" />
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${build}/tmp"/>
<delete dir="${test.report.dir}" quiet="true"/>
<mkdir dir="${test.report.dir}"/>
<copy todir="${build}" quiet="true"><fileset dir="../OM" includes="config/**"/></copy>
<copy todir="${build}" quiet="true"><fileset dir="../OM" includes="data/**"/></copy>
<copy todir="${build}" quiet="true"><fileset dir="../CoreStrats" includes="config/**"/></copy>
<copy todir="${build}" quiet="true"><fileset dir="../CoreStrats" includes="data/**"/></copy>
<copy todir="${build}" quiet="true"><fileset dir="../smtbht" includes="config/**"/></copy>
<copy todir="${build}" quiet="true"><fileset dir="../smtbht" includes="data/**"/></copy>
</target>
<target name="compile" depends="init" description="compile the source " >
<javac classpathref="build.classpath" srcdir="../Core/src" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source" destdir="${build}">
<compilerarg value="-XDignore.symbol.file"/>
</javac>
<javac classpathref="build.classpath" srcdir="../Generated/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Model/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/internal/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/fix/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/codec-client/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/codec-exchange/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/codec-base/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/codec-binary/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/binary/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../Generated/model/codec-factory/version/1.0.0/src" destdir="${build}"/>
<javac classpathref="build.classpath" srcdir="../OM/src" destdir="${build}" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source"/>
<javac classpathref="build.classpath" srcdir="../CoreStrats/src" destdir="${build}" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source"/>
<javac classpathref="build.classpath" srcdir="../smtbht/src" destdir="${build}" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source"/>
</target>
<target name="compileTest" depends="compile" description="compile the test source">
<javac classpathref="build.classpath" srcdir="../Core/test" destdir="${build}" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source"/>
<javac classpathref="build.classpath" srcdir="../OM/test" destdir="${build}" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source"/>
<javac classpathref="build.classpath" srcdir="../CoreStrats/test" destdir="${build}" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source"/>
<javac classpathref="build.classpath" srcdir="../smtbht/test" destdir="${build}" source="1.7" target="1.7" debug="true" debuglevel="lines,vars,source"/>
</target>
<!-- Run the JUnit Tests -->
<!-- Output is XML, could also be plain-->
<target name="junit" depends="compileTest">
<junit showoutput="no" printsummary="true" fork="true" forkmode="once" haltonfailure="no" dir="${build}">
<classpath refid="junit.class.path" />
<formatter type="plain" />
<batchtest todir="${test.report.dir}">
<fileset dir="../Core/test"><include name="**/Test*.java" /></fileset>
<fileset dir="../Core/test"><include name="**/*Test.java" /></fileset>
<fileset dir="../OM/test"><include name="**/*Test.java" /></fileset>
<fileset dir="../OM/test"><include name="**/Test*.java" /></fileset>
<fileset dir="../CoreStrats/test"><include name="**/Test*.java" /></fileset>
<fileset dir="../CoreStrats/test"><include name="**/*Test.java" /></fileset>
<fileset dir="../smtbht/test"><include name="**/Test*.java" /></fileset>
<fileset dir="../smtbht/test"><include name="**/*Test.java" /></fileset>
</batchtest>
</junit>
</target>
<target name="dist" depends="compile, compileTest, junit" description="generate the distribution" >
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>