-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspigottest.xml
169 lines (144 loc) · 5.92 KB
/
spigottest.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="spigottest" default="makeJar">
<property file="spigottest.properties"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="700m"/>
<patternset id="ignored.files">
<exclude name="**/*.hprof/**"/>
<exclude name="**/*.pyc/**"/>
<exclude name="**/*.pyo/**"/>
<exclude name="**/*.rbc/**"/>
<exclude name="**/*~/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.git/**"/>
<exclude name="**/.hg/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/CVS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/__pycache__/**"/>
<exclude name="**/_svn/**"/>
<exclude name="**/rcs/**"/>
<exclude name="**/vssver.scc/**"/>
<exclude name="**/vssver2.scc/**"/>
</patternset>
<patternset id="library.patterns">
<include name="*.war"/>
<include name="*.swc"/>
<include name="*.apk"/>
<include name="*.zip"/>
<include name="*.egg"/>
<include name="*.ane"/>
<include name="*.jar"/>
<include name="*.ear"/>
</patternset>
<patternset id="compiler.resources">
<exclude name="**/?*.java"/>
<exclude name="**/?*.form"/>
<exclude name="**/?*.class"/>
<exclude name="**/?*.groovy"/>
<exclude name="**/?*.scala"/>
<exclude name="**/?*.flex"/>
<exclude name="**/?*.kt"/>
<exclude name="**/?*.clj"/>
<exclude name="**/?*.aj"/>
</patternset>
<!-- JDK definitions -->
<property name="jdk.bin.1.8" value="${jdk.home.1.8}/bin"/>
<path id="jdk.classpath.1.8">
<fileset dir="${jdk.home.1.8}">
<include name="jre/lib/charsets.jar"/>
<include name="jre/lib/deploy.jar"/>
<include name="jre/lib/ext/cldrdata.jar"/>
<include name="jre/lib/ext/dnsns.jar"/>
<include name="jre/lib/ext/jaccess.jar"/>
<include name="jre/lib/ext/jfxrt.jar"/>
<include name="jre/lib/ext/localedata.jar"/>
<include name="jre/lib/ext/nashorn.jar"/>
<include name="jre/lib/ext/sunec.jar"/>
<include name="jre/lib/ext/sunjce_provider.jar"/>
<include name="jre/lib/ext/sunpkcs11.jar"/>
<include name="jre/lib/ext/zipfs.jar"/>
<include name="jre/lib/javaws.jar"/>
<include name="jre/lib/jce.jar"/>
<include name="jre/lib/jfr.jar"/>
<include name="jre/lib/jfxswt.jar"/>
<include name="jre/lib/jsse.jar"/>
<include name="jre/lib/management-agent.jar"/>
<include name="jre/lib/plugin.jar"/>
<include name="jre/lib/resources.jar"/>
<include name="jre/lib/rt.jar"/>
<include name="lib/ant-javafx.jar"/>
<include name="lib/dt.jar"/>
<include name="lib/javafx-mx.jar"/>
<include name="lib/jconsole.jar"/>
<include name="lib/packager.jar"/>
<include name="lib/sa-jdi.jar"/>
<include name="lib/tools.jar"/>
</fileset>
</path>
<property name="project.jdk.home" value="${jdk.home.1.8}"/>
<property name="project.jdk.bin" value="${jdk.bin.1.8}"/>
<property name="project.jdk.classpath" value="jdk.classpath.1.8"/>
<!-- Modules -->
<!-- Module SpigotTest -->
<dirname property="module.spigottest.basedir" file="${ant.file}"/>
<property name="module.jdk.home.spigottest" value="${project.jdk.home}"/>
<property name="module.jdk.bin.spigottest" value="${project.jdk.bin}"/>
<property name="module.jdk.classpath.spigottest" value="${project.jdk.classpath}"/>
<property name="compiler.args.spigottest" value="-encoding UTF-8 -source 8 -target 8 ${compiler.args}"/>
<property name="spigottest.output.dir" value="${module.spigottest.basedir}/out/production/SpigotTest"/>
<property name="spigottest.testoutput.dir" value="${module.spigottest.basedir}/out/test/SpigotTest"/>
<path id="spigottest.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="spigottest.module.production.classpath">
<path refid="${module.jdk.classpath.spigottest}"/>
<pathelement location="${basedir}/spigot-1.11.2-R0.1-SNAPSHOT.jar"/>
</path>
<path id="spigottest.runtime.production.module.classpath">
<pathelement location="${spigottest.output.dir}"/>
<pathelement location="${basedir}/spigot-1.11.2-R0.1-SNAPSHOT.jar"/>
</path>
<path id="spigottest.module.classpath">
<path refid="${module.jdk.classpath.spigottest}"/>
<pathelement location="${spigottest.output.dir}"/>
<pathelement location="${basedir}/spigot-1.11.2-R0.1-SNAPSHOT.jar"/>
</path>
<path id="spigottest.runtime.module.classpath">
<pathelement location="${spigottest.testoutput.dir}"/>
<pathelement location="${spigottest.output.dir}"/>
<pathelement location="${basedir}/spigot-1.11.2-R0.1-SNAPSHOT.jar"/>
</path>
<patternset id="excluded.from.module.spigottest">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.spigottest">
<patternset refid="excluded.from.module.spigottest"/>
</patternset>
<path id="spigottest.module.sourcepath">
<dirset dir="${module.spigottest.basedir}">
<include name="src"/>
</dirset>
</path>
<target name="makeJar" description="make jar">
<delete dir="ant" verbose="true"/>
<mkdir dir="ant/build/jar"/>
<mkdir dir="ant/build/classes"/>
<javac compiler="javac1.8" classpath="${basedir}/spigot-1.11.2-R0.1-SNAPSHOT.jar" srcdir="src" destdir="ant/build/classes" verbose="true"/>
<copy todir="ant/build/classes">
<fileset dir="src">
<include name="**/*.class"/>
<include name="**/*.yml"/>
</fileset>
</copy>
<jar destfile="ant/build/jar/SpigotTest.jar" basedir="ant/build/classes"/>
</target>
</project>