|
15 | 15 | <property name="compile.debug" value="true"/>
|
16 | 16 | <property name="compile.deprecation" value="false"/>
|
17 | 17 | <property name="compile.optimize" value="true"/>
|
18 |
| - <property name="compile.source" value="1.6" /> |
19 |
| - <property name="compile.target" value="1.6" /> |
| 18 | + <property name="compile.source" value="1.8" /> |
| 19 | + <property name="compile.target" value="1.8" /> |
20 | 20 | <property name="compile.encoding" value="utf-8" />
|
21 | 21 |
|
22 | 22 | <target name="classpath" description="Sets the classpath">
|
|
26 | 26 | <include name="*.jar"/>
|
27 | 27 | <exclude name="javanlp*"/>
|
28 | 28 | </fileset>
|
| 29 | + <fileset dir="${basedir}/liblocal"> |
| 30 | + <include name="*.jar"/> |
| 31 | + <exclude name="javanlp*"/> |
| 32 | + </fileset> |
29 | 33 | </path>
|
30 | 34 | </target>
|
31 | 35 |
|
|
34 | 38 | <delete dir="${build.path}"/>
|
35 | 39 | </target>
|
36 | 40 |
|
| 41 | + <target name="javacceverything" depends="classpath" |
| 42 | + description="javacc everything that can be javacced"> |
| 43 | + <taskdef resource="net/sf/antcontrib/antlib.xml"> |
| 44 | + <classpath> |
| 45 | + <pathelement location="${project.core}/lib/ant-contrib-1.0b3.jar"/> |
| 46 | + </classpath> |
| 47 | + </taskdef> |
| 48 | + |
| 49 | + <echo message="${ant.project.name}" /> |
| 50 | + <for param="javacc.target"> |
| 51 | + <path> |
| 52 | + <fileset dir="${source.path}"> |
| 53 | + <include name="**/*.jj"/> |
| 54 | + </fileset> |
| 55 | + </path> |
| 56 | + <sequential> |
| 57 | + <javacc target="@{javacc.target}" javacchome="${basedir}/lib" /> |
| 58 | + </sequential> |
| 59 | + </for> |
| 60 | + </target> |
| 61 | + |
37 | 62 | <target name="flexeverything" depends="classpath"
|
38 | 63 | description="JFlex everything that can be JFlexed">
|
39 | 64 | <taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
42 | 67 | </classpath>
|
43 | 68 | </taskdef>
|
44 | 69 |
|
45 |
| - <taskdef classname="JFlex.anttask.JFlexTask" name="jflex"> |
| 70 | + <taskdef classname="jflex.anttask.JFlexTask" name="jflex"> |
46 | 71 | <classpath>
|
47 |
| - <pathelement location="${project.core}/lib/JFlex.jar"/> |
| 72 | + <pathelement location="${project.core}/lib/jflex-1.5.1.jar"/> |
48 | 73 | </classpath>
|
49 | 74 | </taskdef>
|
50 | 75 |
|
|
80 | 105 | <!-- <compilerarg value="-Xmaxerrs"/>
|
81 | 106 | <compilerarg value="20"/> -->
|
82 | 107 | <compilerarg value="-Xlint:cast"/>
|
| 108 | + <compilerarg value="-Xlint:classfile"/> |
| 109 | + <compilerarg value="-Xlint:divzero"/> |
| 110 | + <compilerarg value="-Xlint:empty"/> |
83 | 111 | <compilerarg value="-Xlint:finally"/>
|
84 | 112 | <compilerarg value="-Xlint:path"/>
|
85 |
| - <!-- <compilerarg value="-Xlint"/> |
| 113 | + <compilerarg value="-Xlint:try"/> |
| 114 | +<!-- |
| 115 | + <compilerarg value="-Xlint:deprecation"/> |
| 116 | + <compilerarg value="-Xlint:dep-ann"/> |
| 117 | + <compilerarg value="-Xlint:fallthrough"/> |
| 118 | + <compilerarg value="-Xlint:options"/> |
| 119 | + <compilerarg value="-Xlint:overrides"/> |
| 120 | + <compilerarg value="-Xlint:processing"/> |
| 121 | + <compilerarg value="-Xlint:rawtypes"/> |
| 122 | + <compilerarg value="-Xlint:serial"/> |
| 123 | + <compilerarg value="-Xlint:static"/> |
| 124 | + <compilerarg value="-Xlint:unchecked"/> |
| 125 | + <compilerarg value="-Xlint:varargs"/> |
| 126 | +--> |
| 127 | +<!-- <compilerarg value="-Xlint:all"/> |
86 | 128 | <compilerarg value="-Xmaxwarns"/>
|
87 |
| - <compilerarg value="10000"/> --> |
| 129 | + <compilerarg value="10000"/> --> |
88 | 130 | </javac>
|
| 131 | + <copy todir="${build.path}/edu/stanford/nlp/pipeline/demo"> |
| 132 | + <fileset dir="${source.path}/edu/stanford/nlp/pipeline/demo"> |
| 133 | + <exclude name="**/*.java"/> |
| 134 | + </fileset> |
| 135 | + </copy> |
89 | 136 | </target>
|
90 | 137 |
|
91 |
| - <target name="test" depends="classpath" |
| 138 | + <target name="test" depends="classpath,compile" |
92 | 139 | description="Run core unit tests">
|
93 | 140 | <echo message="${ant.project.name}" />
|
94 | 141 | <junit fork="true" maxmemory="1g" printsummary="off" outputtoformatters="false" forkmode="perBatch" haltonfailure="true">
|
|
105 | 152 | </junit>
|
106 | 153 | </target>
|
107 | 154 |
|
108 |
| - <target name="itest" depends="classpath" |
| 155 | + <target name="itest" depends="classpath,compile" |
109 | 156 | description="Run core integration tests">
|
110 | 157 | <echo message="${ant.project.name}" />
|
111 | 158 | <junit fork="yes" maxmemory="8g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="true">
|
|
123 | 170 | </junit>
|
124 | 171 | </target>
|
125 | 172 |
|
126 |
| - <target name="slowitest" depends="classpath" |
| 173 | + <target name="slowitest" depends="classpath,compile" |
127 | 174 | description="Run really slow integration tests">
|
128 | 175 | <echo message="${ant.project.name}" />
|
129 | 176 | <junit fork="yes" maxmemory="8g" printsummary="off" outputtoformatters="false" forkmode="perTest" haltonfailure="true">
|
|
147 | 194 | description="Clean and re-compile." />
|
148 | 195 |
|
149 | 196 | <!-- This file contains the .jsp build target -->
|
150 |
| - <import file="../../commonbuildjsp.xml" /> |
| 197 | + <import file="commonbuildjsp.xml" /> |
151 | 198 |
|
152 | 199 | <!-- This runs the specified class, using a separate Java VM -->
|
153 | 200 | <!-- Specify class to run via "run.class," arg, i.e., -->
|
|
212 | 259 | <echo message="Building from ${source.path}/@{webapp.path}"/>
|
213 | 260 |
|
214 | 261 | <!-- First, compile the .jsp into .java -->
|
215 |
| - <jasper2 |
| 262 | + <jasper2 |
216 | 263 | validateXml="false"
|
217 | 264 | uriroot="${source.path}/@{webapp.path}"
|
218 | 265 | webXmlFragment="${source.path}/@{webapp.path}/WEB-INF/generated.xml"
|
219 | 266 | addWebXmlMappings="true"
|
220 | 267 | outputDir="${build.path}/@{webapp.path}/WEB-INF/src" />
|
221 |
| - |
| 268 | + |
222 | 269 | <mkdir dir="${build.path}/@{webapp.path}/WEB-INF/classes"/>
|
223 |
| - |
| 270 | + |
224 | 271 | <!-- Then compile the .java into .class -->
|
225 | 272 | <javac destdir="${build.path}/@{webapp.path}/WEB-INF/classes"
|
226 | 273 | optimize="${compile.optimize}"
|
|
258 | 305 | <include name="javanlp-core.jar"/>
|
259 | 306 | </lib>
|
260 | 307 | <lib dir="${basedir}/lib">
|
261 |
| - <include name="commons-lang-2.5.jar"/> |
262 |
| - <include name="xom-1.2.7.jar"/> |
| 308 | + <include name="commons-lang3-3.1.jar"/> |
| 309 | + <include name="xom-1.2.10.jar"/> |
263 | 310 | <include name="joda-time.jar"/>
|
264 |
| - <include name="jollyday.jar"/> |
| 311 | + <include name="jollyday-0.4.7.jar"/> |
265 | 312 | </lib>
|
266 | 313 | <zipfileset prefix="WEB-INF/data"
|
267 |
| - file="/u/nlp/data/pos-tagger/english/english-left3words-distsim.tagger"/> |
| 314 | + file="/u/nlp/data/pos-tagger/distrib/english-left3words-distsim.tagger"/> |
268 | 315 | <zipfileset prefix="WEB-INF/data/rules"
|
269 | 316 | file="${source.path}/edu/stanford/nlp/time/rules/*"/>
|
270 |
| - <zipfileset prefix="WEB-INF/classes/holidays" |
| 317 | + <zipfileset prefix="WEB-INF/data/holidays" |
271 | 318 | file="${source.path}/edu/stanford/nlp/time/holidays/*"/>
|
272 | 319 | <zipfileset file="${data.path}/webapps/favicon.ico"/>
|
273 | 320 | <zipfileset file="${source.path}/edu/stanford/nlp/time/suservlet/header.jsp"/>
|
|
278 | 325 | <zipfileset file="${source.path}/edu/stanford/nlp/time/suservlet/prototype.js"/>
|
279 | 326 | </war>
|
280 | 327 | </target>
|
| 328 | + |
| 329 | + <target name="openie.war" depends="compile,jar" |
| 330 | + description="build the openie webapp"> |
| 331 | + <war destfile="openie.war" |
| 332 | + webxml="${source.path}/edu/stanford/nlp/naturalli/demo/web.xml"> |
| 333 | + <lib dir="."> |
| 334 | + <include name="javanlp-core.jar"/> |
| 335 | + </lib> |
| 336 | + <zipfileset prefix="WEB-INF/data" |
| 337 | + file="/u/nlp/data/pos-tagger/distrib/english-left3words-distsim.tagger"/> |
| 338 | + <zipfileset prefix="WEB-INF/data" |
| 339 | + file="${source.path}/edu/stanford/nlp/time/rules/*"/> |
| 340 | + <zipfileset prefix="WEB-INF/data" |
| 341 | + file="${source.path}/edu/stanford/nlp/time/holidays/*"/> |
| 342 | + <zipfileset prefix="WEB-INF/data" |
| 343 | + file="/u/nlp/data/ner/goodClassifiers/english.all.3class.distsim.crf.ser.gz"/> |
| 344 | + <zipfileset prefix="WEB-INF/data" |
| 345 | + file="/u/nlp/data/ner/goodClassifiers/english.conll.4class.distsim.crf.ser.gz"/> |
| 346 | + <zipfileset prefix="WEB-INF/data" |
| 347 | + file="/u/nlp/data/ner/goodClassifiers/english.muc.7class.distsim.crf.ser.gz"/> |
| 348 | + <zipfileset prefix="WEB-INF/data" |
| 349 | + file="/u/nlp/data/depparser/nn/distrib/english_SD.gz"/> |
| 350 | + <zipfileset prefix="WEB-INF/data" |
| 351 | + file="/u/nlp/data/lexparser/englishPCFG.ser.gz"/> |
| 352 | + <zipfileset prefix="WEB-INF/data" |
| 353 | + file="/home/gabor/workspace/naturalli/etc/clauseSplitterModel.ser.gz"/> |
| 354 | + <zipfileset prefix="WEB-INF/data" |
| 355 | + file="/home/gabor/workspace/naturalli/etc/pp.tab.gz"/> |
| 356 | + <zipfileset prefix="WEB-INF/data" |
| 357 | + file="/home/gabor/workspace/naturalli/etc/obj.tab.gz"/> |
| 358 | + <zipfileset prefix="WEB-INF/data" |
| 359 | + file="/home/gabor/workspace/naturalli/etc/privative.tab.gz"/> |
| 360 | + <zipfileset prefix="WEB-INF/data" |
| 361 | + file="/home/gabor/workspace/naturalli/etc/subj_obj_pp.tab.gz"/> |
| 362 | + <zipfileset prefix="WEB-INF/data" |
| 363 | + file="/home/gabor/workspace/naturalli/etc/subj_pp_obj.tab.gz"/> |
| 364 | + <zipfileset prefix="WEB-INF/data" |
| 365 | + file="/home/gabor/workspace/naturalli/etc/subj_pp_pp.tab.gz"/> |
| 366 | + <zipfileset prefix="WEB-INF/data" |
| 367 | + file="/home/gabor/workspace/naturalli/etc/subj_pp.tab.gz"/> |
| 368 | + </war> |
| 369 | + </target> |
281 | 370 |
|
282 | 371 | <target name="parser.war" depends="compile,jar"
|
283 | 372 | description="build the parser webapp">
|
284 | 373 | <buildjsp webapp.path="edu/stanford/nlp/parser/webapp"
|
285 | 374 | webapp.war="parser.war"
|
286 | 375 | webapp.jar="javanlp-core.jar">
|
287 |
| - <webapp.lib/> <!-- don't need anything! --> |
| 376 | + <webapp.lib> |
| 377 | + <lib dir="/u/nlp/data/StanfordCoreNLPModels"> |
| 378 | + <include name="stanford-spanish-corenlp-models-current.jar"/> |
| 379 | + </lib> |
| 380 | + </webapp.lib> |
288 | 381 | <webapp.data>
|
289 | 382 | <zipfileset prefix="WEB-INF/data"
|
290 | 383 | file="/u/nlp/data/lexparser/englishPCFG.ser.gz"/>
|
|
296 | 389 | file="/u/nlp/data/gale/segtool/stanford-seg/classifiers-2010/05202008-ctb6.processed-chris6.lex.gz"/>
|
297 | 390 | <zipfileset prefix="WEB-INF/data/chinesesegmenter"
|
298 | 391 | dir="/u/nlp/data/gale/segtool/stanford-seg/releasedata"/>
|
| 392 | + <zipfileset prefix="WEB-INF/data" |
| 393 | + file="/u/nlp/data/lexparser/spanishPCFG.ser.gz"/> |
299 | 394 | <zipfileset file="${data.path}/webapps/favicon.ico"/>
|
300 | 395 | </webapp.data>
|
301 | 396 | </buildjsp>
|
|
312 | 407 | <include name="javanlp-core.jar"/>
|
313 | 408 | </lib>
|
314 | 409 | <lib dir="${basedir}/lib">
|
315 |
| - <include name="commons-lang-2.5.jar"/> |
| 410 | + <include name="commons-lang3-3.1.jar"/> |
316 | 411 | </lib>
|
317 | 412 | <zipfileset file="${source.path}/edu/stanford/nlp/ie/ner/webapp/ner.jsp"/>
|
318 | 413 | <zipfileset file="${source.path}/edu/stanford/nlp/ie/ner/webapp/header.jsp"/>
|
|
342 | 437 | <include name="javanlp-core.jar"/>
|
343 | 438 | </lib>
|
344 | 439 | <lib dir="${basedir}/lib">
|
345 |
| - <include name="commons-lang-2.5.jar"/> |
346 |
| - <include name="xom-1.2.8.jar"/> |
347 |
| - <include name="xalan.jar"/> |
348 |
| - <include name="serializer.jar"/> |
349 |
| - <include name="xercesImpl.jar"/> |
| 440 | + <include name="commons-lang3-3.1.jar"/> |
| 441 | + <include name="xom-1.2.10.jar"/> |
350 | 442 | <include name="xml-apis.jar"/>
|
351 | 443 | <include name="joda-time.jar"/>
|
352 | 444 | <include name="jollyday-0.4.7.jar"/>
|
353 | 445 | </lib>
|
354 | 446 | <!-- note for John: c:/Users/John Bauer/nlp/stanford-releases -->
|
355 | 447 | <lib dir="/u/nlp/data/StanfordCoreNLPModels">
|
356 | 448 | <include name="stanford-corenlp-models-current.jar"/>
|
| 449 | + <include name="stanford-chinese-corenlp-models-current.jar"/> |
357 | 450 | </lib>
|
358 | 451 | <classes dir="${source.path}/edu/stanford/nlp/pipeline">
|
359 | 452 | <include name="StanfordCoreNLP.properties"/>
|
|
367 | 460 | </war>
|
368 | 461 | </target>
|
369 | 462 |
|
370 |
| -</project> |
| 463 | + <property environment="env" /> |
| 464 | + |
| 465 | + <condition property="version1.7"> |
| 466 | + <equals arg1="${ant.java.version}" arg2="1.7" /> |
| 467 | + </condition> |
| 468 | + |
| 469 | + <target name="tregex-osx" if="version1.7" depends="jar" |
| 470 | + description="Build an OS X app for TregexGUI"> |
| 471 | + <fail unless="env.JAVA_HOME" |
| 472 | + message="Environment variable JAVA_HOME not set." /> |
| 473 | + |
| 474 | + <taskdef name="bundleapp" |
| 475 | + classname="com.oracle.appbundler.AppBundlerTask" |
| 476 | + classpath="lib/appbundler-1.0.jar" /> |
371 | 477 |
|
| 478 | + <bundleapp outputdirectory="." |
| 479 | + name="Stanford Tregex" |
| 480 | + displayname="Stanford Tregex" |
| 481 | + icon="doc/tregex/nlp-logo-6x6.icns" |
| 482 | + identifier="edu.stanford.nlp.trees.tregex.gui.TregexGUI" |
| 483 | + mainclassname="edu.stanford.nlp.trees.tregex.gui.TregexGUI"> |
| 484 | + <runtime dir="${env.JAVA_HOME}" /> |
| 485 | + <classpath file="javanlp-core.jar" /> |
| 486 | + </bundleapp> |
| 487 | + </target> |
| 488 | + |
| 489 | +</project> |
0 commit comments