-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
72 lines (51 loc) · 1.72 KB
/
build.xml
File metadata and controls
72 lines (51 loc) · 1.72 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<project name="patched_http" basedir="." >
<property name="ROOT" value="." />
<property name="SRC" value="${ROOT}/src" />
<property name="BUILD" value="${ROOT}/build" />
<property name="SERVICE" value="${ROOT}/service" />
<property name="JARFILE" value="${ant.project.name}.jar" />
<property name="MAIN_CLASS" value="TestHttp" />
<target name="init" >
<echo message="Initiating build environment..." />
<tstamp/>
<mkdir dir="${BUILD}" />
<mkdir dir="${DISTRO}"/>
</target>
<target name="clean">
<delete dir="${BUILD}"/>
<delete dir="${DISTRO}"/>
</target>
<!-- The compilation target -->
<target name="compile" depends="init" >
<echo message="Compiling ${ant.project.name}..." />
<mkdir dir="${BUILD}/service" />
<!-- actually compile -->
<javac srcdir="${SRC}"
destdir="${BUILD}/service"
nowarn="yes"
source="1.6"
target="1.6"
includeAntRuntime="no"
debug="true"
debuglevel="lines,vars,source">
<compilerarg value="-XDignore.symbol.file=true"/>
</javac>
</target>
<target name="build-server" depends="compile">
<mkdir dir="${SERVICE}" />
<tstamp>
<format property="build.time" pattern="EEE, d MMM yyyy HH:mm:ss" />
</tstamp>
<jar destfile="${SERVICE}/${JARFILE}">
<!-- <service type="com.sun.net.httpserver.spi.HttpServerProvider"
provider="patched.sun.net.httpserver.DefaultHttpServerProvider"/> -->
<fileset dir="${BUILD}/service" />
<manifest>
<attribute name="Build-Time" value="${build.time}" />
<attribute name="Built-By" value="${user.name}" />
<attribute name="Class-Path" value="${jar.classpath}" />
<attribute name="Main-Class" value="${MAIN_CLASS}" />
</manifest>
</jar>
</target>
</project>