|
33 | 33 | </path>
|
34 | 34 | </target>
|
35 | 35 |
|
| 36 | + <target name="models.classpath" description="Sets the models classpath, for itests and such"> |
| 37 | + <path id="models.classpath"> |
| 38 | + <fileset dir="${env.CORENLP_MODELS_HOME}"> |
| 39 | + <include name="*.jar"/> |
| 40 | + </fileset> |
| 41 | + </path> |
| 42 | + </target> |
| 43 | + |
36 | 44 | <target name="clean" description="Delete old classes">
|
37 | 45 | <echo message="${ant.project.name}" />
|
38 | 46 | <delete dir="${build.path}"/>
|
|
69 | 77 |
|
70 | 78 | <taskdef classname="jflex.anttask.JFlexTask" name="jflex">
|
71 | 79 | <classpath>
|
72 |
| - <pathelement location="${project.core}/lib/jflex-1.6.1.jar"/> |
| 80 | + <pathelement location="${project.core}/lib/jflex-full-1.8.2.jar"/> |
73 | 81 | </classpath>
|
74 | 82 | </taskdef>
|
75 | 83 |
|
|
159 | 167 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
160 | 168 | </target>
|
161 | 169 |
|
162 |
| - <target name="itest" depends="classpath,compile" |
| 170 | + <target name="itest" depends="classpath,compile,models.classpath" |
163 | 171 | description="Run core integration tests">
|
164 | 172 | <echo message="${ant.project.name}" />
|
165 | 173 | <junit fork="yes" maxmemory="12g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no"
|
166 | 174 | haltonerror="no" failureproperty="test.failed" errorproperty="test.failed">
|
167 | 175 | <classpath refid="classpath"/>
|
| 176 | + <classpath refid="models.classpath"/> |
168 | 177 | <classpath path="${build.path}"/>
|
169 | 178 | <classpath path="${data.path}"/>
|
170 | 179 | <classpath path="${source.path}"/>
|
|
179 | 188 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
180 | 189 | </target>
|
181 | 190 |
|
182 |
| - <target name="itest-many-docs" depends="classpath" |
| 191 | + <target name="itest-many-docs" depends="classpath,compile,models.classpath" |
183 | 192 | description="Run StanfordCoreNLP on a large volume of documents.">
|
184 | 193 | <echo message="${ant.project.name}" />
|
185 | 194 | <junit fork="yes" maxmemory="14g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no"
|
186 | 195 | haltonerror="no" failureproperty="test.failed" errorproperty="test.failed">
|
187 | 196 | <classpath refid="classpath"/>
|
| 197 | + <classpath refid="models.classpath"/> |
188 | 198 | <classpath path="${build.path}"/>
|
189 | 199 | <classpath path="${data.path}"/>
|
190 | 200 | <classpath path="${source.path}"/>
|
|
198 | 208 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
199 | 209 | </target>
|
200 | 210 |
|
201 |
| - <target name="itest-coreference" depends="classpath" |
| 211 | + <target name="itest-coreference" depends="classpath,compile,models.classpath" |
202 | 212 | description="Coreference related slow itests.">
|
203 | 213 | <echo message="${ant.project.name}" />
|
204 | 214 | <junit fork="yes" maxmemory="7g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no"
|
205 | 215 | haltonerror="no" failureproperty="test.failed" errorproperty="test.failed">
|
206 | 216 | <classpath refid="classpath"/>
|
| 217 | + <classpath refid="models.classpath"/> |
207 | 218 | <classpath path="${build.path}"/>
|
208 | 219 | <classpath path="${data.path}"/>
|
209 | 220 | <classpath path="${source.path}"/>
|
|
220 | 231 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
221 | 232 | </target>
|
222 | 233 |
|
223 |
| - <target name="itest-protobuf" depends="classpath" |
| 234 | + <target name="itest-protobuf" depends="classpath,compile,models.classpath" |
224 | 235 | description="Protocol buffer related slow itests.">
|
225 | 236 | <echo message="${ant.project.name}" />
|
226 | 237 | <junit fork="yes" maxmemory="14g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no"
|
227 | 238 | haltonerror="no" failureproperty="test.failed" errorproperty="test.failed">
|
228 | 239 | <classpath refid="classpath"/>
|
| 240 | + <classpath refid="models.classpath"/> |
229 | 241 | <classpath path="${build.path}"/>
|
230 | 242 | <classpath path="${data.path}"/>
|
231 | 243 | <classpath path="${source.path}"/>
|
|
239 | 251 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
240 | 252 | </target>
|
241 | 253 |
|
242 |
| - <target name="itest-kbp" depends="classpath" |
| 254 | + <target name="itest-kbp" depends="classpath,compile,models.classpath" |
243 | 255 | description="KBP related slow itests.">
|
244 | 256 | <echo message="${ant.project.name}" />
|
245 | 257 | <junit fork="yes" maxmemory="14g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no"
|
246 | 258 | haltonerror="no" failureproperty="test.failed" errorproperty="test.failed">
|
247 | 259 | <classpath refid="classpath"/>
|
| 260 | + <classpath refid="models.classpath"/> |
248 | 261 | <classpath path="${build.path}"/>
|
249 | 262 | <classpath path="${data.path}"/>
|
250 | 263 | <classpath path="${source.path}"/>
|
|
258 | 271 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
259 | 272 | </target>
|
260 | 273 |
|
261 |
| - <target name="itest-ner" depends="classpath" |
| 274 | + <target name="itest-ner" depends="classpath,compile,models.classpath" |
262 | 275 | description="NER related slow itests">
|
263 | 276 | <echo message="${ant.project.name}" />
|
264 |
| - <junit fork="yes" maxmemory="14g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no" |
| 277 | + <junit fork="yes" maxmemory="8g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no" |
265 | 278 | haltonerror="no" failureproperty="test.failed" errorproperty="test.failed">
|
266 | 279 | <classpath refid="classpath"/>
|
| 280 | + <classpath refid="models.classpath"/> |
267 | 281 | <classpath path="${build.path}"/>
|
268 | 282 | <classpath path="${data.path}"/>
|
269 | 283 | <classpath path="${source.path}"/>
|
270 | 284 | <formatter type="brief" usefile="false"/>
|
271 | 285 | <batchtest fork="yes">
|
272 | 286 | <fileset dir="${itests.path}">
|
273 | 287 | <include name="**/NERBenchmark*SlowITest.java"/>
|
274 |
| - <include name="**/TrainCRFClassifierSlowITest.java"/> |
275 | 288 | <include name="**/NERPipelineEndToEndSlowITest.java"/>
|
276 | 289 | <include name="**/NERTokenizationSlowITest.java"/>
|
| 290 | + <include name="**/TrainCRFClassifierSlowITest.java"/> |
277 | 291 | </fileset>
|
278 | 292 | </batchtest>
|
279 | 293 | </junit>
|
280 | 294 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
281 | 295 | </target>
|
282 | 296 |
|
283 |
| - <target name="itest-misc" depends="classpath" |
| 297 | + <target name="itest-misc" depends="classpath,compile,models.classpath" |
284 | 298 | description="Other assorted slow itests">
|
285 | 299 | <echo message="${ant.project.name}" />
|
286 | 300 | <junit fork="yes" maxmemory="14g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no"
|
287 | 301 | haltonerror="no" failureproperty="test.failed" errorproperty="test.failed">
|
288 | 302 | <classpath refid="classpath"/>
|
| 303 | + <classpath refid="models.classpath"/> |
289 | 304 | <classpath path="${build.path}"/>
|
290 | 305 | <classpath path="${data.path}"/>
|
291 | 306 | <classpath path="${source.path}"/>
|
|
300 | 315 | <fail message="Test error or failure detected, check test results." if="test.failed" />
|
301 | 316 | </target>
|
302 | 317 |
|
303 |
| - <target name="itest-debug" depends="classpath" |
| 318 | + <target name="itest-debug" depends="classpath,compile,models.classpath" |
304 | 319 | description="target for debug purposes">
|
305 | 320 | <echo message="${ant.project.name}" />
|
306 | 321 | <junit fork="yes" maxmemory="14g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="no"
|
|
0 commit comments