-
Notifications
You must be signed in to change notification settings - Fork 221
/
build-httpserver.xml
44 lines (44 loc) · 1.49 KB
/
build-httpserver.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
<?xml version="1.0"?>
<project name="lib" default="dist" basedir=".">
<property name="lib-src" location="${httpserver.dir}/src/main/java" />
<property name="lib-build" location="${httpserver.dir}/build" />
<property name="lib-dist" location="${httpserver.dir}/dist" />
<path id="libs">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${log.dir}/dist">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${lib-build}" />
</target>
<target name="compilelib" depends="init">
<javac destdir="${lib-build}" debug="true" source="1.8" target="1.8" encoding="UTF-8" includeantruntime="on">
<classpath>
<path refid="libs" />
</classpath>
<src path="${lib-src}" />
</javac>
</target>
<target name="distlib" depends="compilelib">
<mkdir dir="${lib-dist}" />
<jar destfile="${lib-dist}/grain-httpserver.jar">
<fileset dir="${lib-build}">
<include name="**/**" />
</fileset>
</jar>
</target>
<target name="dist" depends="clean, distlib, distdepend" />
<target name="clean" description="clean up">
<delete dir="${lib-build}" />
<delete dir="${lib-dist}" />
</target>
<target name="distdepend">
<mkdir dir="${lib-dist}/grain-httpserver"/>
<copy file="${lib-dist}/grain-httpserver.jar" todir="${lib-dist}/grain-httpserver" />
<copy file="${log.dir}/dist/grain-log.jar" todir="${lib-dist}/grain-httpserver" />
<copydir src="${httpserver.dir}/lib" dest="${lib-dist}/grain-httpserver"></copydir>
</target>
</project>