-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·179 lines (153 loc) · 6.08 KB
/
build.xml
File metadata and controls
executable file
·179 lines (153 loc) · 6.08 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="UTF-8"?>
<project name="hw5" default="dist">
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<!-- codebase properties not needed for hw2?-->
<target name="compile" description="compile the source">
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" includeantruntime="false"/>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<!-- Make computer jar file -->
<jar jarfile="${dist}/computer.jar" basedir="${build}" includes="system/** api/** tasks/** checkpointing/** test/**"/>
<!-- Make client jar file -->
<jar jarfile="${dist}/client.jar" basedir="${build}" includes="client/** api/** tasks/** system/** checkpointing/** test/**"/>
<!-- Make the space jar file -->
<jar jarfile="${dist}/space.jar" basedir="${build}" includes="system/** api/** tasks/** checkpointing/** test/**"/>
</target>
<target name="javadoc" description="create javadocs">
<javadoc packagenames="tasks.*,api.*" sourcepath="${src}" destdir="documents/javadoc" />
</target>
<target name="runComputer" description="run computer" >
<java classname="system.ComputerImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<classpath>
<pathelement location="dist/computer.jar"/>
</classpath>
</java>
</target>
<target name="runComputer8889" description="run computer" >
<java classname="system.ComputerImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<arg value="8889"/>
<classpath>
<pathelement location="dist/computer.jar"/>
</classpath>
</java>
</target>
<target name="runComputerP" description="run computer" >
<java classname="system.ComputerImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<arg value="8888"/>
<arg value="-p"/>
<classpath>
<pathelement location="dist/computer.jar"/>
</classpath>
</java>
</target>
<target name="runComputerL" description="run computer" >
<java classname="system.ComputerImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<arg value="8888"/>
<arg value="-np"/>
<arg value="-l"/>
<classpath>
<pathelement location="dist/computer.jar"/>
</classpath>
</java>
</target>
<target name="runComputerPL" description="run computer" >
<java classname="system.ComputerImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<arg value="8888"/>
<arg value="-p"/>
<arg value="-l"/>
<classpath>
<pathelement location="dist/computer.jar"/>
</classpath>
</java>
</target>
<target name="runSpace" description="run space" >
<java classname="system.SpaceImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<arg value="8888"/>
<!-- <jvmarg value="-Xmx1000m"/> -->
<classpath>
<pathelement location="dist/space.jar"/>
</classpath>
</java>
</target>
<target name="runSpace8889" description="run space" >
<java classname="system.SpaceImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<arg value="8889"/>
<!-- <jvmarg value="-Xmx1000m"/> -->
<classpath>
<pathelement location="dist/space.jar"/>
</classpath>
</java>
</target>
<target name="runTspClient" description="run client" >
<java classname="client.Tsp" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<classpath>
<pathelement location="dist/client.jar"/>
</classpath>
</java>
</target>
<target name="runMandelClient" description="run client" >
<java classname="client.Mandelbrot" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<classpath>
<pathelement location="dist/client.jar"/>
</classpath>
</java>
</target>
<target name="runFibClient" description="run client" >
<java classname="client.Fib" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<classpath>
<pathelement location="dist/client.jar"/>
</classpath>
</java>
</target>
<target name="runTestClient" description="run client" >
<java classname="client.TestApplication" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<classpath>
<pathelement location="dist/client.jar"/>
</classpath>
</java>
</target>
<target name="runSpaceCoord" description="run client" >
<java classname="system.SpaceCoordinatorImpl" fork="true">
<jvmarg value="-Djava.security.policy=policy"/>
<arg value="localhost"/>
<classpath>
<pathelement location="dist/client.jar"/>
</classpath>
</java>
</target>
<target name="clean" description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>