-
Notifications
You must be signed in to change notification settings - Fork 89
/
build.xml
45 lines (40 loc) · 1.31 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
<?xml version="1.0"?>
<project default="jar" basedir="." name="rest-nettyserver">
<property name="project.name" value="rest-nettyserver"/>
<property name="version" value="0.1"/>
<property name="src.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="build.dir" value="build"/>
<property name="bin.dir" value="bin"/>
<path id="compile.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<path id="run.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${build.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete failonerror="false" dir="${build.dir}"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="${build.dir}"></mkdir>
<javac destdir="${build.dir}" encoding="UTF-8" debug="on">
<src path="${src.dir}"/>
<classpath refid="compile.classpath"/>
</javac>
<copydir dest="${build.dir}" src="${src.dir}">
<exclude name="**/*.java"></exclude>
</copydir>
</target>
<target name="jar" depends="compile">
<jar jarfile="${bin.dir}/${project.name}-${version}.jar">
<fileset dir="${build.dir}"/>
</jar>
</target>
</project>