-
Notifications
You must be signed in to change notification settings - Fork 223
/
build.xml
77 lines (61 loc) · 2.16 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" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="loklak">
<condition property="windows">
<os family="windows"/>
</condition>
<condition property="nix">
<os family="unix"/>
</condition>
<target name="set-exec-win" if="windows">
<property name="gradlew-path"
location="./gradlew.bat"/>
<echo message="It's a Windows system, gradlew-path has been set to ${gradlew-path} "/>
</target>
<target name="set-exec-nix" if="nix">
<property name="gradlew-path"
location="./gradlew"/>
<echo message="It's a UNIX system, gradlew-path has been set to ${gradlew-path} "/>
</target>
<target depends="set-exec-win, set-exec-nix" name="init">
<echo>
======================================================
-- ATTENTION --
THE ANT BUILD SYSTEM IS DEPRECATED - PLEASE USE GRADLE
TO BUILD WITH GRADLE WITHOUT HAVING TO INSTALL IT RUN
$ ./gradlew build
THIS BUILD SCRIPT WILL USE GRADLE VIA EXEC
THANK YOU
======================================================
</echo>
</target>
<target depends="init" name="clean">
<exec executable="${gradlew-path}">
<arg value="clean"/>
</exec>
</target>
<target depends="init" name="build">
<exec executable="${gradlew-path}">
<arg value="build"/>
</exec>
<copy todir="classes">
<fileset dir="build/classes"/>
</copy>
</target>
<target name="javadoc" depends="init" description="make javadoc">
<exec executable="${gradlew-path}">
<arg value="javadoc"/>
</exec>
</target>
<target depends="build,javadoc" name="all"/>
<target name="start">
<exec executable="${gradlew-path}">
<arg value="start"/>
</exec>
</target>
<target name="jar" depends="build">
<mkdir dir="dist"/>
<copy todir="dist">
<fileset dir="build/libs"/>
</copy>
</target>
</project>