-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
52 lines (46 loc) · 1.95 KB
/
build.xml
File metadata and controls
52 lines (46 loc) · 1.95 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
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="qldarch.backend" default="build">
<property name="ivy.install.version" value="2.4.0"/>
<target name="clean">
<delete dir="build"/>
</target>
<target name="retrieve" description="retrieve dependencies with ivy">
<mkdir dir="ivy/lib" />
<get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"
dest="ivy/ivy-${ivy.install.version}.jar" usetimestamp="true"/>
<path id="ivy.lib.path"><fileset dir="ivy/" includes="*.jar"/></path>
<taskdef resource="org/apache/ivy/ant/antlib.xml"
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
<ivy:retrieve pattern="ivy/lib/[conf]/[artifact]-[revision].[ext]" type="jar, bundle" sync="true"/>
<mkdir dir="ivy/lib/compile" />
<get src="https://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.jar"
dest="ivy/lib/compile/javax.servlet-api-3.0.1.jar" usetimestamp="true"/>
</target>
<target name="compile" depends="retrieve">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" deprecation="on" debug="true"
includeantruntime="false" source="1.8" target="1.8">
<classpath>
<fileset dir="ivy/lib/default"/>
<fileset dir="ivy/lib/compile"/>
</classpath>
</javac>
</target>
<target name="build" depends="compile">
<copy todir="build/classes">
<fileset dir="src">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy file="version.txt" todir="build/classes/net/qldarch"/>
<loadfile property="version" srcFile="version.txt">
<filterchain>
<striplinebreaks/>
</filterchain>
</loadfile>
<war destfile="build/qldarch-${version}.war" webxml="web.xml">
<classes dir="build/classes"/>
<lib dir="ivy/lib/default"/>
</war>
</target>
</project>