forked from HTTP-RPC/Kilo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
57 lines (42 loc) · 1.88 KB
/
build.xml
File metadata and controls
57 lines (42 loc) · 1.88 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="httprpc-client" default="build">
<property file="build.properties"/>
<property environment="env"/>
<property name="src" value="src"/>
<property name="bin" value="bin"/>
<property name="doc" value="doc"/>
<property name="jarfile" value="${ant.project.name}-${version}.jar"/>
<property name="docfile" value="${ant.project.name}-${version}-javadoc.zip"/>
<property name="zipfile" value="${ant.project.name}-${version}.zip"/>
<target name="build">
<echo message="Building ${title}..."/>
<delete dir="${bin}"/>
<mkdir dir="${bin}"/>
<javac srcDir="${src}" destDir="${bin}"
includejavaruntime="true" includeantruntime="true"
encoding="UTF-8" deprecation="true" debug="true"
source="1.7" target="1.7"
bootclasspath="${env.JDK_7}/jre/lib/rt.jar"
failonerror="true"/>
<delete dir="." includes="${jarfile}"/>
<jar basedir="${bin}" destfile="${jarfile}" index="true">
<manifest>
<attribute name="Implementation-Title" value="${title}"/>
<attribute name="Implementation-Version" value="${version}"/>
</manifest>
</jar>
</target>
<target name="doc">
<delete dir="${doc}"/>
<javadoc sourcepath="${src}" destdir="${doc}"
link="http://docs.oracle.com/javase/7/docs/api/"
version="true" use="true"
bootclasspath="${env.JDK_7}/jre/lib/rt.jar"/>
<delete dir="." includes="${docfile}"/>
<zip destfile="${docfile}" basedir="doc"/>
</target>
<target name="package" depends="build, doc">
<delete dir="." includes="${zipfile}"/>
<zip destfile="${zipfile}" basedir="." includes="${jarfile}, ${docfile}, pom.xml"/>
</target>
</project>