forked from loklak/loklak_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
69 lines (61 loc) · 2.28 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="loklak">
<property environment="env"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<path id="loklak.classpath">
<pathelement location="classes"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<copy includeemptydirs="false" todir="classes">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="classes"/>
<delete dir="html/javadoc"/>
</target>
<target depends="init" name="build">
<delete dir="classes"/>
<mkdir dir="classes"/>
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" destdir="classes" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="loklak.classpath"/>
</javac>
</target>
<target name="javadoc" depends="init" description="make javadoc">
<delete dir="html/javadoc"/>
<javadoc destdir="html/javadoc" windowtitle="loklak javadoc" encoding="UTF-8" charset="UTF-8" access="private">
<classpath refid="loklak.classpath"/>
<fileset dir="src">
<include name="**/*.java"/>
</fileset>
</javadoc>
</target>
<target depends="build,javadoc" name="all"/>
<target name="start">
<java classname="org.loklak.Main" failonerror="true" fork="yes">
<jvmarg line="-ea"/>
<classpath refid="loklak.classpath"/>
</java>
</target>
<target name="jar" depends="build">
<mkdir dir="dist"/>
<manifestclasspath property="jar.classpath" jarfile="dist/loklak.jar">
<classpath refid="loklak.classpath" />
</manifestclasspath>
<jar destfile="dist/loklak.jar" basedir="classes/">
<manifest>
<attribute name="Class-Path" value="${jar.classpath}" />
<attribute name="Main-Class" value="org.loklak.LoklakServer" />
</manifest>
</jar>
</target>
</project>