forked from ncb000gt/base64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·66 lines (54 loc) · 1.89 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<project name="base64" default="all" basedir=".">
<!-- =================================================================== -->
<!-- Initializes some variables -->
<!-- =================================================================== -->
<property name="project" value="base64"/>
<property name="home.dir" value="."/>
<property name="build.dir" value="${home.dir}/build"/>
<property name="src.dir" value="${home.dir}/src"/>
<property name="dist.dir" value="${home.dir}/dist"/>
<property name="docs.dir" value="${home.dir}/docs"/>
<property name="jar.name" value="Base64.jar"/>
<property environment="env"/>
<path id="classpath">
</path>
<target name="all" depends="build"/>
<target name="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.dir}/classes"/>
</target>
<target name="clean">
<delete file="${dist.dir}/${jar.name}"/>
<delete dir="${build.dir}"/>
<delete dir="${docs.dir}"/>
</target>
<target name="build" depends="clean, init">
<antcall target="jar"/>
<antcall target="jsdoc"/>
<antcall target="javadoc"/>
</target>
<target name="compile" depends="init">
<property name="deprecation" value="off"/>
<property name="debug" value="on"/>
<property name="optimize" value="on"/>
<property name="encoding" value="utf-8" />
<javac srcdir="${src.dir}"
encoding="${encoding}"
destdir="${build.dir}/classes"
debug="${debug}"
deprecation="${deprecation}"
optimize="${optimize}">
<classpath refid="classpath" />
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${dist.dir}/${jar.name}" basedir="${build.dir}/classes"/>
</target>
<target name="docs">
<javadoc sourcepath="${src.dir}"
destdir="${docs.dir}"
packagenames="*"
classpathref="classpath"/>
</target>
</project>