This repository has been archived by the owner on Nov 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
50 lines (40 loc) · 1.44 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
<project name="nio-http" default="help">
<description>NIO-HTTP Build Project</description>
<target name="help">
<echo message="* Build commands: "/>
<echo message="* "/>
<echo message="* clean - Clean the build system"/>
<echo message="* all - Build nio-http"/>
<echo message="* package - Package into nio-http.jar"/>
<echo message="* "/>
<echo message="* Example: "/>
<echo message="* ant clean all package"/>
<echo message="* "/>
<echo message="* NOTE that 'package' depends on 'all' and will invoke it "/>
<echo message="* automatically so from a clean checkout the following is "/>
<echo message="* enough to build a working library: "/>
<echo message="* "/>
<echo message="* ant package "/>
</target>
<target name="clean">
<delete dir="${basedir}/dist" quiet="true" />
<delete file="${basedir}/nio-http.jar" quiet="true" />
</target>
<target name="all">
<mkdir dir="${basedir}/dist"/>
<copy todir="${basedir}/dist/com/codeandstrings/niohttp/data/mime">
<fileset dir="${basedir}/nio-http/com/codeandstrings/niohttp/data/mime" includes="mime.types"/>
</copy>
<javac srcdir="${basedir}"
destdir="${basedir}/dist"
optimize="true"
listfiles="true" includeantruntime="false">
<include name="**/*.java" />
</javac>
</target>
<target name="package" depends="all">
<jar destfile="${basedir}/nio-http.jar"
basedir="${basedir}/dist"
update="false"/>
</target>
</project>