-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
70 lines (59 loc) · 2.18 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
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="compile" name="music">
<description>
</description>
<property name = "build_dir" value = "classes" />
<property name = "dist_dir" value = "jars" />
<property name = "src_dir" value = "src" />
<property name = "doc_dir" value = "docs" />
<target name = "clean">
<delete dir = "${dist_dir}" />
<mkdir dir = "${dist_dir}" />
<delete dir = "${build_dir}" />
<mkdir dir= "${build_dir}" />
<delete dir = "${doc_dir}" />
<mkdir dir= "${doc_dir}" />
</target>
<target name = "compile">
<javac destdir="${build_dir}" srcdir="${src_dir}" optimize="false" debug="true">
<include name = "com/dusbabek/lib/id3/**" />
<include name = "com/dusbabek/junk/**" />
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${dist_dir}/java-id3.jar" basedir = "${build_dir}" />
</target>
<target name = "jar-source" depends = "compile">
<jar jarfile="${dist_dir}/java-id3-src.jar" basedir = "${src_dir}" />
</target>
<target name = "javadoc" depends="compile">
<javadoc
destdir="${doc_dir}"
author="false"
version="false"
use="false"
windowtitle="Java id3">
<packageset dir="${src_dir}" defaultexcludes="yes">
<include name="com/dusbabek/lib/id3/**" />
</packageset>
<doctitle><![CDATA[<h1>Java id3</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2004, 2005 Gary Dusbabek. All Rights Reserved.</i>]]></bottom>
<tag name="todo" scope="all" description="To do:" />
<tag name="assume" scope="all" description="Implmentational assumption:" />
</javadoc>
</target>
<target name = "bundle" depends="clean,jar-source,jar,javadoc">
<zip
zipfile="${dist_dir}/java-id3.zip"
basedir="."
excludes = "bak/**, classes/**, mp3/**, ${dist_dir}/**/*.zip, *.local">
</zip>
</target>
<target name = "run-gui" depends = "compile">
<java classname = "com.dusbabek.junk.TagFrame"
classpath = "${build_dir}/"
>
<jvmarg value="-Did3.verbose"/>
</java>
</target>
</project>