-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (28 loc) · 952 Bytes
/
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
<?xml version="1.0"?>
<project name="websocket" default="build" basedir=".">
<fileset id="all-jars" dir="lib">
<include name="**/*.jar" />
</fileset>
<path id="classpath-jars">
<fileset refid="all-jars" />
</path>
<pathconvert property="manifest.classpath" refid="classpath-jars" pathsep=" " dirsep="/">
<map from="${basedir}" to="." />
</pathconvert>
<target name="build">
<antcall target="package"/>
</target>
<target name="package" depends="compile">
<jar destfile="websocket.jar">
<fileset dir="./build/classes" />
<manifest>
<attribute name="Main-Class" value="jp.paulownia.sample.websocket.Main"/>
<attribute name="Class-Path" value="${manifest.classpath}"/>
</manifest>
</jar>
</target>
<target name="compile">
<mkdir dir="./build/classes" />
<javac srcdir="./src" destdir="./build/classes" classpathref="classpath-jars" />
</target>
</project>