-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
63 lines (54 loc) · 1.9 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
<project name="QuickfixLearning" default="jar" basedir=".">
<description>
Ant build file for a Quickfix demo application
</description>
<!-- Global properties: set paths here and use vars in case of changes in the future-->
<property name="src" location="./src"/>
<property name="lib" location="./lib"/>
<property name="bin" location="./bin"/>
<property name="etc" location="./etc"/>
<path id="project.class.path">
<!-- QuickfixJ libraries -->
<pathelement location="../quickfixj/quickfixj-all-1.4.0.jar"/>
<pathelement location="../quickfixj/lib/slf4j-api-1.5.3.jar"/>
<pathelement location="../quickfixj/lib/slf4j-jdk14-1.5.3.jar"/>
<pathelement location="../quickfixj/lib/mina-core-1.1.0.jar"/>
<!-- Project directory-->
<pathelement location="${lib}"/>
</path>
<target name="compile">
<javac srcdir="${src}" destdir="${lib}">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${bin}/LanFongOMS.jar" includes="${lib}/*.class">
<manifest>
<attribute name="Main-Class" value="LanFongOMS"/>
</manifest>
</jar>
<jar destfile="${bin}/BakerStreetOMS.jar" includes="${lib}/*.class">
<manifest>
<attribute name="Main-Class" value="BakerStreetOMS"/>
</manifest>
</jar>
</target>
<target name="run_broker" depends="jar">
<java classname="LanFongOMS" fork="true">
<classpath refid="project.class.path"/>
<arg value="${etc}/lanfong.cfg"/>
</java>
</target>
<target name="run_client" depends="jar">
<java classname="BakerStreetOMS" fork="true">
<classpath refid="project.class.path"/>
<arg value="${etc}/bakerstreet.cfg"/>
</java>
</target>
<target name="clean">
<delete>
<fileset dir="${lib}" includes="*.class"/>
<fileset dir="${bin}" includes="*.jar"/>
</delete>
</target>
</project>