Skip to content

Commit 61f7d9d

Browse files
mjfang27Stanford NLP
authored and
Stanford NLP
committed
added modules
1 parent ab79d57 commit 61f7d9d

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

module_core.xml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="module_core" default="compile.module.core">
3+
<dirname property="module.core.basedir" file="${ant.file.module_core}"/>
4+
5+
<property name="module.jdk.home.core" value="${project.jdk.home}"/>
6+
<property name="module.jdk.bin.core" value="${project.jdk.bin}"/>
7+
<property name="module.jdk.classpath.core" value="${project.jdk.classpath}"/>
8+
9+
<property name="compiler.args.core" value="-encoding UTF-8 -source 8 ${compiler.args}"/>
10+
11+
<property name="core.output.dir" value="${module.core.basedir}/../action_parsing/out/production/core"/>
12+
<property name="core.testoutput.dir" value="${module.core.basedir}/../action_parsing/out/test/core"/>
13+
14+
<path id="core.module.bootclasspath">
15+
<!-- Paths to be included in compilation bootclasspath -->
16+
</path>
17+
18+
<path id="core.module.production.classpath">
19+
<path refid="${module.jdk.classpath.core}"/>
20+
<path refid="library.lib_core.classpath"/>
21+
</path>
22+
23+
<path id="core.runtime.production.module.classpath">
24+
<pathelement location="${core.output.dir}"/>
25+
<path refid="library.lib_core.classpath"/>
26+
<path refid="library.javanlp_modules.classpath"/>
27+
</path>
28+
29+
<path id="core.module.classpath">
30+
<path refid="${module.jdk.classpath.core}"/>
31+
<pathelement location="${core.output.dir}"/>
32+
<path refid="library.lib_core.classpath"/>
33+
</path>
34+
35+
<path id="core.runtime.module.classpath">
36+
<pathelement location="${core.testoutput.dir}"/>
37+
<pathelement location="${core.output.dir}"/>
38+
<path refid="library.lib_core.classpath"/>
39+
<path refid="library.javanlp_modules.classpath"/>
40+
</path>
41+
42+
43+
<patternset id="excluded.from.module.core">
44+
<patternset refid="ignored.files"/>
45+
</patternset>
46+
47+
<patternset id="excluded.from.compilation.core">
48+
<patternset refid="excluded.from.module.core"/>
49+
</patternset>
50+
51+
<path id="core.module.sourcepath">
52+
<dirset dir="${module.core.basedir}">
53+
<include name="src"/>
54+
</dirset>
55+
</path>
56+
57+
58+
<target name="compile.module.core" depends="compile.module.core.production,compile.module.core.tests" description="Compile module core"/>
59+
60+
<target name="compile.module.core.production" depends="register.custom.compilers" description="Compile module core; production classes">
61+
<mkdir dir="${core.output.dir}"/>
62+
<javac2 destdir="${core.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.core}/javac">
63+
<compilerarg line="${compiler.args.core}"/>
64+
<bootclasspath refid="core.module.bootclasspath"/>
65+
<classpath refid="core.module.production.classpath"/>
66+
<src refid="core.module.sourcepath"/>
67+
<patternset refid="excluded.from.compilation.core"/>
68+
</javac2>
69+
70+
<copy todir="${core.output.dir}">
71+
<fileset dir="${module.core.basedir}/src">
72+
<patternset refid="compiler.resources"/>
73+
<type type="file"/>
74+
</fileset>
75+
</copy>
76+
</target>
77+
78+
<target name="compile.module.core.tests" depends="register.custom.compilers,compile.module.core.production" description="compile module core; test classes" unless="skip.tests"/>
79+
80+
<target name="clean.module.core" description="cleanup module">
81+
<delete dir="${core.output.dir}"/>
82+
<delete dir="${core.testoutput.dir}"/>
83+
</target>
84+
</project>

0 commit comments

Comments
 (0)