-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·111 lines (98 loc) · 4.08 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE project>
<project name="CorpusLMServer" default="dist" basedir=".">
<!-- Projectgegevens -->
<property name="project.name" value="LMServer" />
<property name="project.version" value="0.1" />
<property name="dist" value="dist" />
<property name="warfile" value="${dist}/lib/${project.name}.war"/>
<!-- Directories -->
<property name="src" value="src" />
<property name="build" value="build" />
<property name="deployment.dir" value="/var/lib/tomcat7/webapps"/>
<property name="libOrigLocation" value="/mnt/Projecten/Automatisering/Applicatieontwikkeling/javalibs" />
<property name="lib" value="/mnt/Projecten/Taalbank/CL-Tools/javalibs" />
<!-- Sla timestamp op en maak de build directory -->
<target name="init">
<echo message="----- Building ${project.name} -----" />
<tstamp />
<mkdir dir="${build}/WEB-INF/classes" />
</target>
<target name="WoordenboekenZoeken">
<ant dir="../WoordenboekenZoeken" inheritall="false" />
</target>
<!-- Compileer de sources -->
<target name="compile" depends="init">
<javac encoding="utf-8" target="1.7" debug="true" debuglevel="lines,vars,source" srcdir="${src}" destdir="${build}/classes">
<!-- Het te gebruiken classpath voor compileren -->
<classpath>
<pathElement path="lib/commons-cli-1.2.jar"/>
<pathElement path="lib/commons-codec-1.9.jar"/>
<pathElement path="lib/commons-collections-3.2.1.jar"/>
<pathElement path="lib/commons-fileupload-1.3.jar"/>
<pathElement path="lib/commons-io-2.1.jar"/>
<pathElement path="lib/commons-logging-1.1.1.jar"/>
<pathElement path="lib/commons-logging-1.2.jar"/>
<pathElement path="lib/fluent-hc-4.5.jar"/>
<pathElement path="lib/httpclient-4.5.jar"/>
<pathElement path="lib/httpclient-cache-4.5.jar"/>
<pathElement path="lib/httpclient-win-4.5.jar"/>
<pathElement path="lib/httpcore-4.4.1.jar"/>
<pathElement path="lib/httpmime-4.5.jar"/>
<pathElement path="lib/javax.json-1.0.4.jar"/>
<pathElement path="lib/jna-4.1.0.jar"/>
<pathElement path="lib/jna-platform-4.1.0.jar"/>
<pathElement path="lib/junit-4.6.jar"/>
<pathElement path="lib/PrimaBasic.jar"/>
<pathElement path="lib/PrimaDla.jar"/>
<pathElement path="lib/PrimaIo.jar"/>
<pathElement path="lib/PrimaMaths.jar"/>
<pathElement path="lib/servlet-api.jar"/>
<pathElement path="lib/spellingvariation.jar"/>
<pathElement path="lib/gson-2.1.jar"/>
<pathElement path="lib/postgresql-9.4-1204.jdbc41.jar"/>
<pathElement path="lib/ant.jar"/>
<pathElement path="/opt/jdk1.8.0_51/jre/lib/rt.jar"/>
<pathelement path="${java.class.path}/"/>
</classpath>
</javac>
<!-- Kopieer de resources uit de src boom -->
<!--
<copy todir="${build}">
<fileset dir="." includes="META-INF/*" />
<fileset dir="." includes="WEB-INF/*" excludes="WEB-INF/web.xml" />
<fileset dir="." includes="WEB-INF/lib/*" />
<fileset dir="." includes="img/*" />
<fileset dir="." includes="*.css" />
<fileset dir="." includes="*.js" />
<fileset dir="." includes="*.html" />
<fileset dir="." includes="*.txt" />
</copy>
-->
<!--
<mkdir dir="${build}/WEB-INF/classes/conf" />
<copy todir="${build}/WEB-INF/classes/conf">
<fileset dir="WEB-INF/src/conf" includes="login.html" />
</copy>
-->
</target>
<!-- Bouw de jar file -->
<target name="dist" depends="compile">
<mkdir dir="${dist}/lib" />
<copy todir="WebContent/WEB-INF/classes">
<fileset dir="build/classes"/>
</copy>
<war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml" basedir="WebContent" />
</target>
<target name="deploy" depends="dist">
<!--
<delete dir="${deployment.dir}/NER"/>
-->
<copy todir="${deployment.dir}"><fileset dir="dist/lib" includes="*.war"/></copy>
</target>
<!-- Ruim de gegenereerde files op -->
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>