-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.xml
182 lines (166 loc) · 6.98 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
<!-- ******************************************************************************* -->
<!-- * libpomdp -->
<!-- * ======== -->
<!-- * File: build.xml -->
<!-- * Description: -->
<!-- * Copyright (c) 2008, 2010 Diego Maniloff -->
<!-- * W3: http://www.cs.uic.edu/~dmanilof -->
<!-- ******************************************************************************* -->
<project name="libpomdp" default="dist">
<description>
build file
</description>
<!-- set global properties for this build -->
<property name="src" location="src/java"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="lib" location="external"/>
<!-- external libraries classpath -->
<path id="classpath">
<fileset dir="${lib}" />
<fileset dir="." />
</path>
<!-- default excludes -->
<defaultexcludes add="**/bak/*"/>
<defaultexcludes add=".git/**"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="parser" depends ="init">
<!-- ANTRL is called with a java task, this should be changed to use antlr -->
<java classname="org.antlr.Tool" classpathref="classpath">
<arg value="${src}/libpomdp/parser/DotPomdp.g"/>
</java>
<java classname="org.antlr.Tool" classpathref="classpath">
<arg value="${src}/libpomdp/parser/DotAlpha.g"/>
</java>
</target>
<target name="offlinetest">
<echo message="Running Spaan's Perseus Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.PerseusTest"/>
</exec>
<echo message="Running Pineu's PBVI (standard) Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.PbviTest"/>
</exec>
<echo message="Running Spaan's Perseus (dynPoints) Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.PerseusDynamicTest"/>
</exec>
<echo message="Running Pineu's PBVI (SSRA-fast) Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.PbviFastTest"/>
</exec>
<echo message="Running Cassandra's Incremental Pruning Exact Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.IncrementalPruningTest"/>
</exec>
<echo message="Running Monahan's Batch Enumeration Exact Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.BatchEnumerationTest"/>
</exec>
<echo message="Running Sondik's One Pass Exact Algorithm"/>
<java classname="libpomdp.test.OnePassTest" classpathref="classpath"/>
</target>
<target name="stdboundstest" depends="dist">
<echo message="Running STD Blind Policy Value Iteration..."/>
<java classname="libpomdp.test.BpviTestStd" classpathref="classpath"/>
<echo message="Running STD QMDP Value Iteration..."/>
<java classname="libpomdp.test.QmdpTestStd" classpathref="classpath"/>
</target>
<target name="addboundstest" depends="dist">
<echo message="Running ADD Blind Policy Value Iteration..."/>
<java classname="libpomdp.test.BpviTestAdd" classpathref="classpath"/>
<echo message="Running ADD QMDP Value Iteration..."/>
<java classname="libpomdp.test.QmdpTestAdd" classpathref="classpath"/>
</target>
<target name="rhotest">
<!-- <echo message="Running RHO PBVI Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.RhoPbviTest"/>
</exec>
<echo message="Running Pineu's PBVI (standard) Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.PbviTest"/>
</exec>-->
<echo message="Running Cassandra's Incremental Pruning Exact Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.IncrementalPruningTest"/>
</exec>
<echo message="Running RHO IP Algorithm"/>
<exec executable="java">
<arg value="-Djava.library.path=/usr/lib/jni"/>
<arg value="-classpath"/>
<arg value="lib/*:dist/*"/>
<arg value="libpomdp.test.RhoIncrementalPruningTest"/>
</exec>
</target>
<target name="compile" depends="parser"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" classpathref="classpath" includeantruntime="false" debug="on" debuglevel="lines,vars,source"/>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}"/>
</target>
<target name="javadoc">
<javadoc
access="public"
author="true"
classpath="external/netlib-java-0.9.1.jar:external/ujmp-complete-0.2.4.jar:external/mtj-0.9.12.jar:external/glpk-java.jar:external/arpack_combo-0.1.jar:external/antlr-3.2.jar:external/jmatharray.jar"
destdir="doc"
doctitle="libpomdp"
nodeprecated="false"
nodeprecatedlist="false"
noindex="false"
nonavbar="false"
notree="false"
packagenames="java.libpomdp.solve.online,libpomdp.online.java,libpomdp.common.java,libpomdp.problems.catchproblem.java,libpomdp.parser.java,libpomdp.common.java.add,java.libpomdp.parser,libpomdp.common.java.standard,libpomdp.offline.java,libpomdp.problems.rocksample.java,libpomdp.hybrid.java"
source="1.6"
sourcepath="src"
splitindex="true"
use="true"
version="true"/>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>