forked from Kunagi/ilarkesto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
78 lines (66 loc) · 2.44 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
<?xml version="1.0"?>
<project name="ilarkesto" default="package" basedir=".">
<target name="clean">
<delete dir="build" />
<delete dir="test-output" />
</target>
<target name="update-libs">
<exec executable="./update-libs.bsh" failonerror="true" />
</target>
<target name="compile">
<mkdir dir="build/classes" />
<copy todir="build/classes" preservelastmodified="true">
<fileset dir="src/main/java" excludes="**/devmode.txt" />
</copy>
<javac source="1.7" target="1.7" srcdir="build/classes"
destdir="build/classes" encoding="UTF-8" nowarn="true" debug="true"
debuglevel="lines,vars,source" includeantruntime="false">
<classpath>
<fileset dir="lib" />
</classpath>
</javac>
</target>
<target name="compile-test" depends="compile">
<mkdir dir="build/test-classes" />
<javac srcdir="src/test/java" destdir="build/test-classes"
encoding="UTF-8" nowarn="true" debug="true" debuglevel="lines,vars,source"
includeantruntime="false">
<classpath>
<path location="build/classes" />
<fileset dir="lib" />
</classpath>
</javac>
</target>
<target name="test" depends="compile-test">
<taskdef name="testng" classpath="lib/testng-5.8.jar"
classname="org.testng.TestNGAntTask" />
<testng outputDir="test-output" haltonfailure="true">
<classfileset dir="build/test-classes" includes="**/*.class" />
<classpath>
<path location="build/classes" />
<path location="build/test-classes" />
<fileset dir="lib" />
</classpath>
</testng>
</target>
<target name="package" depends="compile">
<jar destfile="build/ilarkesto.jar" basedir="build/classes" />
<exec executable="./build-package.bsh" failonerror="true" />
</target>
<target name="javadoc">
<javadoc sourcepath="src/main/java" destdir="build/javadoc"
encoding="UTF-8" failonerror="true">
<classpath>
<fileset dir="lib" />
</classpath>
</javadoc>
</target>
<target name="r1-deploy">
<copy todir="/var/www/servisto.de/projects/ilarkesto" file="build/ilarkesto.jar" />
<copy todir="/var/www/servisto.de/projects/ilarkesto" file="build/ilarkesto.tbz" />
<copy todir="/var/www/servisto.de/projects/ilarkesto/javadoc">
<fileset dir="build/javadoc" />
</copy>
</target>
<target name="continousIntegrationBuild" depends="clean,update-libs,test,package,javadoc,r1-deploy" />
</project>