forked from sgsinclair/VoyantServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
95 lines (83 loc) · 2.91 KB
/
build.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
<?xml version="1.0"?>
<project name="JettyDesktop" default="jar">
<!-- Src directories -->
<property name="src" location="src"/>
<!-- Build directories -->
<property name="build" location="./bin"/>
<!-- Output directories -->
<property name="dist" location="dist/"/>
<property name="jarpath" location="lib"/>
<path id="project.jars">
<pathelement location="${jarpath}/jetty-all-9.2.2.v20140723.jar"/>
<pathelement location="${jarpath}/servlet-api-3.1.0.jar"/>
</path>
<path id="project.class.path">
<pathelement location="${build}"/>
</path>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" optimize="on" debug="on">
<classpath>
<path refid="project.class.path"/>
<path refid="project.jars"/>
</classpath>
</javac>
<copy file="${src}/org/aw20/logo/aw20.jpg" todir="${build}/org/aw20/logo/"/>
<copy file="${src}/org/voyanttools/resources/voyant_small.png" todir="${build}/org/voyanttools/resources/"/>
<copy file="${src}/org/aw20/jettydesktop/rte/webdefault.xml" todir="${build}/org/aw20/jettydesktop/rte"/>
</target>
<target name="jar" depends="clean,compile">
<jar jarfile="${dist}/VoyantServer.jar"
filesonly="true"
compress="true">
<fileset dir="${build}" />
<zipfileset src="${jarpath}/jetty-all-9.2.2.v20140723.jar" excludes="META-INF/*" />
<zipfileset src="${jarpath}/servlet-api-3.1.0.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Main-Class" value="org.voyanttools.server.ui.VoyantServerStart"/>
</manifest>
</jar>
<copy todir="${dist}/_app">
<fileset dir="_app"/>
</copy>
<copy file="./server-settings.txt" todir="${dist}/"/>
<copy file="./license-GPL3.txt" todir="${dist}/"/>
<copy file="./README.md" todir="${dist}/"/>
<jar jarfile="VoyantServer.zip"
filesonly="true"
compress="true">
<fileset dir="${dist}" />
</jar>
</target>
<target name="smallerjar" depends="clean,compile">
<jar jarfile="${dist}/VoyantServer.jar"
filesonly="true"
compress="true">
<fileset dir="${build}" />
<zipfileset src="${jarpath}/jetty-all-9.2.2.v20140723.jar" excludes="META-INF/*" />
<zipfileset src="${jarpath}/servlet-api-3.1.0.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Main-Class" value="org.voyanttools.server.ui.VoyantServerStart"/>
<attribute name="appname" value="VoyantServer" />
</manifest>
</jar>
<copy todir="${dist}/_app">
<fileset dir="_app">
<exclude name="**/*stanford-corenlp-1.2.0-models.jar"/>
</fileset>
</copy>
<copy file="./server-settings.txt" todir="${dist}/"/>
<copy file="./license-GPL3.txt" todir="${dist}/"/>
<copy file="./README.md" todir="${dist}/"/>
<jar jarfile="VoyantServerNoNlp.zip"
filesonly="true"
compress="true">
<fileset dir="${dist}" />
</jar>
</target>
</project>