-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
45 lines (37 loc) · 1.29 KB
/
build.xml
File metadata and controls
45 lines (37 loc) · 1.29 KB
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
<project name="CS3800_Chat_Server" default="compile">
<!-- Set properties -->
<property name="src.dir" value="./src/main/java"/>
<property name="build.dir" value="./bin"/>
<!-- Define the clean target -->
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<!-- Define the compile target -->
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac destdir="${build.dir}">
<src path="${src.dir}/model"/>
<src path="${src.dir}/view"/>
<src path="${src.dir}/controller"/>
<src path="${src.dir}/tool"/>
</javac>
</target>
<!-- Define the clean & build target -->
<target name="build" depends="clean, compile"/>
<!-- Define the run-server target -->
<target name="run-server" depends="compile">
<java classname="src.main.java.model.ChatServer" classpath="${build.dir}"></java>
</target>
<!-- Define the test target -->
<target name="test" depends="compile">
<java classname="src.main.java.controller.Controller" classpath="${build.dir}"></java>
</target>
<!-- Define the chatbot target -->
<target name="chatbot" depends="compile">
<java classname="src.main.java.tool.ChatBot" classpath="${build.dir}">
<arg value="0.0.0.0"/>
<arg value="1234"/>
<arg value="5"/>
</java>
</target>
</project>