forked from fireandfuel/CodecJLayerMP3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
54 lines (42 loc) · 1.47 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="CodecJLayerMP3" basedir="." default="main">
<property name="target" value="1.6" />
<property name="source" value="1.6" />
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="deploy.dir" value="deploy" />
<property name="deploy.file" value="${ant.project.name}" />
<property name="deploy.version" value="r3" />
<property name="deploy.creator" value="fireandfuel ([email protected])" />
<fileset id="lib_set" dir="lib" includes="**/*.jar" />
<path id="classpath">
<fileset refid="lib_set" />
</path>
<target name="setup_dirs">
<delete dir="${build.dir}" />
<delete dir="${deploy.dir}" />
<mkdir dir="${build.dir}" />
<mkdir dir="${deploy.dir}" />
</target>
<target name="build" depends="setup_dirs">
<javac debug="on" srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false" classpathref="classpath" />
</target>
<target name="deploy" depends="build">
<jar destfile="${deploy.dir}/${deploy.file}.${deploy.version}.jar" basedir="${build.dir}">
<manifest>
<attribute name="Created-By" value="${deploy.creator}" />
</manifest>
</jar>
</target>
<target name="clean_build">
<delete dir="${build.dir}" />
</target>
<target name="cleanup">
<delete dir="${build.dir}" />
<delete dir="${deploy.dir}" />
</target>
<target name="main" depends="deploy, clean_build">
<description>
</description>
</target>
</project>