-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
34 lines (30 loc) · 1.12 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
<project name="chord" default="dist" basedir=".">
<description>simple example build file</description>
<target name="init">
<mkdir dir="build"/>
<mkdir dir="build/core"/>
<mkdir dir="build/client"/>
<mkdir dir="dist"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="src" destdir="build/core" debug="true"/>
<javac srcdir="client/src" destdir="build/client" debug="true"/>
</target>
<target name="dist" depends="compile">
<mkdir dir="dist"/>
<jar jarfile="dist/chord-core.jar" basedir="build/core">
<manifest>
<attribute name="Main-Class" value="org.elbek.chord.core.NodeRunner"/>
</manifest>
</jar>
<jar jarfile="dist/chord-client.jar" basedir="build/client">
<manifest>
<attribute name="Main-Class" value="org.elbek.chord.client.Client"/>
</manifest>
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="build"/>
<delete dir="dist"/>
</target>
</project>