-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
201 lines (178 loc) · 7.33 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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Originally auto-generated from Eclipse, but then edited. -->
<project basedir="." default="help" name="PuckSwarm"
xmlns:ivy="antlib:org.apache.ivy.ant" >
<property name="classes.dir" value="classes"/>
<!-- Location of jar files managed by ivy, and not managed by ivy -->
<property name="lib.dir" value="lib"/>
<property name="non-ivy-lib.dir" value="non-ivy-lib"/>
<path id="lib-jars">
<fileset dir="${lib.dir}" />
</path>
<path id="non-ivy-lib-jars">
<fileset dir="${non-ivy-lib.dir}" />
</path>
<path id="PuckSwarm.classpath">
<pathelement location="${classes.dir}"/>
<path refid="lib-jars"/>
<path refid="non-ivy-lib-jars"/>
</path>
<target name="help">
<echo message="ant help -- print this message"/>
<echo message="ant init -- creates classes and lib dirs"/>
<echo message="ant clean -- removes classes and lib dirs"/>
<echo message="ant resolve -- uses ivy to get external jars"/>
<echo message="ant compile -- compiles the source"/>
<echo message="ant RunTestbed -- runs the simulation with GUI"/>
<echo message="ant RunOffline -- runs the simulation w/o GUI"/>
<echo message=""/>
<echo message="-- The following additional targets are available."/>
<echo message="-- See src for details."/>
<echo message=""/>
<echo message="ant Analyze"/>
<echo message="ant AnalyzeAggregate"/>
<echo message="ant CallPostPainter"/>
<echo message="ant FinalBarplot"/>
<echo message="ant GridPlotter"/>
<echo message="ant Plotter"/>
<echo message=""/>
<echo message="-- The following targets build jar files."/>
<echo message=""/>
<echo message="ant sim.jar"/>
<echo message="ant plotter.jar"/>
<echo message="ant analyze_aggregate.jar"/>
</target>
<target name="init">
<mkdir dir="${lib.dir}"/>
<mkdir dir="${classes.dir}"/>
</target>
<target name="resolve" depends="init"
description="retreive dependencies with ivy">
<ivy:retrieve />
</target>
<target name="clean">
<delete dir="${classes.dir}"/>
<delete dir="${lib.dir}"/>
</target>
<target depends="init,resolve" name="compile">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" destdir="${classes.dir}" includeantruntime="false" >
<src path="src"/>
<exclude name="sensors/CameraImagePanel.java"/>
<exclude name="controllers/ColourSeekBehaviour.java"/>
<exclude name="controllers/VFHSteerAwayBehaviour.java"/>
<exclude name="controllers/ColourBackupBehaviour.java"/>
<exclude name="controllers/EscapeOthersBehaviour.java"/>
<exclude name="controllers/EscapeStasisBehaviour.java"/>
<exclude name="controllers/SeekBehaviour.java"/>
<exclude name="controllers/SimpleAvoidBehaviour.java"/>
<exclude name="controllers/BehaviourUtils.java"/>
<exclude name="controllers/RandomTurnBehaviour.java"/>
<exclude name="controllers/SteerAwayBehaviour.java"/>
<exclude name="controllers/TurnSignBehaviour.java"/>
<exclude name="controllers/BackupAndTurnBehaviour.java"/>
<exclude name="controllers/HPMBehaviour.java"/>
<exclude name="controllers/CacheConsensusBehaviour.java"/>
<classpath refid="PuckSwarm.classpath"/>
</javac>
</target>
<target name="RunTestbed" depends="compile">
<java classname="arena.RunTestbed" failonerror="true" fork="yes">
<jvmarg line="-ea -Xss8m -Xms512M -Xmx1524M"/>
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="RunOffline" depends="compile">
<java classname="arena.RunOffline" failonerror="true" fork="yes">
<jvmarg line="-ea -Xss8m -Xms512M -Xmx2500M"/>
<arg line="/home/av/SCALE true"/>
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="Analyze" depends="compile">
<java classname="analysis.Analyze" failonerror="true" fork="yes">
<arg line="/home/av/DATA/SI12/SIM/SCALE 20"/>
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="AnalyzeAggregate" depends="compile">
<java classname="analysis.AnalyzeAggregate" failonerror="true" fork="yes">
<arg line="/Users/av/DATA/ALR16 1"/>
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="CallPostPainter" depends="compile">
<java classname="analysis.CallPostPainter" failonerror="true" fork="yes">
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="FinalBarplot" depends="compile">
<java classname="analysis.FinalBarplot" failonerror="true" fork="yes">
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="GridPlotter" depends="compile">
<java classname="analysis.GridPlotter" failonerror="true" fork="yes">
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="Plotter" depends="compile">
<java classname="analysis.Plotter" failonerror="true" fork="yes">
<classpath refid="PuckSwarm.classpath"/>
</java>
</target>
<target name="sim.jar" depends="compile">
<jar jarfile="sim.jar">
<fileset dir="${classes.dir}"/>
<restrict>
<name name="**/*"/>
<archives>
<zips>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${non-ivy-lib.dir}" includes="**/*.jar"/>
</zips>
</archives>
</restrict>
<manifest>
<attribute name="Main-Class"
value="arena.RunTestbed" />
</manifest>
</jar>
</target>
<target name="plotter.jar" depends="compile">
<jar jarfile="plotter.jar">
<fileset dir="${classes.dir}"/>
<restrict>
<name name="**/*"/>
<archives>
<zips>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${non-ivy-lib.dir}" includes="**/*.jar"/>
</zips>
</archives>
</restrict>
<manifest>
<attribute name="Main-Class"
value="analysis.Plotter" />
</manifest>
</jar>
</target>
<target name="analyze_aggregate.jar" depends="compile">
<jar jarfile="analyze_aggregate.jar">
<fileset dir="${classes.dir}"/>
<restrict>
<name name="**/*"/>
<archives>
<zips>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${non-ivy-lib.dir}" includes="**/*.jar"/>
</zips>
</archives>
</restrict>
<manifest>
<attribute name="Main-Class"
value="analysis.AnalyzeAggregate" />
</manifest>
</jar>
</target>
</project>