This repository has been archived by the owner on Nov 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.xml
64 lines (53 loc) · 2.2 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
<project name="IRCCat" default="dist" basedir=".">
<property name="src.dir" location="src"/>
<property name="lib.dir" location="libs"/>
<property name="build.dir" location="build"/>
<property name="dist.dir" location="dist"/>
<property name="example.dir" location="examples" />
<property name="project.name" value="irccat" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${dist.dir}" includes="**/*.jar"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" debug="on"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar jarfile="${dist.dir}/${project.name}.jar" basedir="${build.dir}"/>
</target>
<target name="tgz" depends="jar">
<tar destfile="${dist.dir}/${project.name}.tar">
<tarfileset file="${basedir}/README" prefix="${project.name}" />
<tarfileset file="${basedir}/irccat.sh" filemode="755" prefix="${project.name}" />
<tarfileset file="${dist.dir}/${project.name}.jar" prefix="${project.name}" />
<tarfileset file="${example.dir}/irccat.xml" prefix="${project.name}" />
<tarfileset dir="${lib.dir}" includes="*.jar" prefix="${project.name}/libs" />
</tar>
<gzip src="${dist.dir}/${project.name}.tar" zipfile="${dist.dir}/${project.name}.tar.gz" />
<delete file="${dist.dir}/${project.name}.tar" />
</target>
<target name="dist" depends="jar,tgz">
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="run">
<java fork="false" classname="fm.last.irccat.IRCCat">
<classpath>
<path refid="classpath"/>
<path location="${dist.dir}/${project.name}.jar"/>
</classpath>
<arg value="${configfile}" />
</java>
</target>
</project>