-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
58 lines (52 loc) · 1.95 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
<project name="javalayer" default="usage" basedir=".">
<!-- Initializations -->
<target name="init">
<echo message="-------------------------------------------------------------"/>
<echo message="------------ BUILDING JLAYER PACKAGE ----------"/>
<echo message=""/>
<property name="year" value="1999-2008"/>
<property name="jars" value="${basedir}"/>
<property name="sources" value="${basedir}/src"/>
<property name="classes" value="${basedir}/classes"/>
<property name="api" value="${basedir}/doc"/>
</target>
<!-- Build -->
<target name="build" depends="init">
<echo message="------ Compiling application"/>
<javac srcdir="${sources}" destdir="${classes}" includes="**"/>
<copy todir="${classes}">
<fileset dir="${sources}" >
<include name="javazoom/jl/decoder/*.ser"/>
</fileset>
</copy>
</target>
<!-- Archive -->
<target name="dist" depends="build">
<echo message="------ Building Jar file"/>
<jar jarfile="${jars}/jl1.0.1.jar" basedir="${classes}" />
</target>
<!-- JavaDoc -->
<target name="all" depends="dist">
<echo message="------ Running JavaDoc"/>
<javadoc packagenames="javazoom.*"
sourcepath="${sources}"
destdir="${api}"
bottom="JavaZOOM ${year}"
author="false">
<classpath>
<pathelement location="${classes}"/>
</classpath>
</javadoc>
</target>
<!-- Usage -->
<target name="usage">
<echo message="*** JavaLayer ANT build script ***"/>
<echo message="Usage : "/>
<echo message=" ant [target]"/>
<echo message=""/>
<echo message=" target : "/>
<echo message=" build : Build Application"/>
<echo message=" dist : Build Application + Archive (JAR)"/>
<echo message=" all : Build Application + Archive + JavaDoc"/>
</target>
</project>