-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
43 lines (37 loc) · 1.41 KB
/
build.xml
File metadata and controls
43 lines (37 loc) · 1.41 KB
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
<project name="whileyweb" default="compile" xmlns:if="ant:if">
<import file="config.xml"/>
<!-- ================================================================== -->
<!-- Setup -->
<!-- ================================================================== -->
<target name="setup">
<mkdir dir="${CLASS_DIR}"/>
</target>
<!-- ============================================== -->
<!-- Compile Java Files -->
<!-- ============================================== -->
<target name="compile" depends="setup">
<javac debug="true" destdir="${CLASS_DIR}" debuglevel="vars,lines,source" source="1.8" target="1.8" includeantruntime="true">
<src path="${JAVA_DIR}"/>
<include name="*/**"/>
<exclude name="*/**/package-info.java"/>
<classpath>
<pathelement path="${JWEBKIT}"/>
<path refid="MAVEN_DEPS"/>
</classpath>
</javac>
</target>
<!-- ============================================== -->
<!-- Start Server -->
<!-- ============================================== -->
<target name="run" depends="compile">
<java classname="com.whileyweb.Main" fork="true">
<classpath>
<pathelement location="${CLASS_DIR}"/>
<pathelement path="${JWEBKIT}"/>
<path refid="MAVEN_DEPS"/>
</classpath>
<arg if:set="ANALYTICS" value="-analytics"/>
<arg if:set="ANALYTICS" value="${ANALYTICS}"/>
</java>
</target>
</project>