-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
68 lines (55 loc) · 1.93 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
<?xml version="1.0"?>
<project name="ircnotifier" default="dist" basedir=".">
<!-- Change these as needed -->
<property name="tc.home" value="/opt/TeamCity" />
<property name="tc.data.dir" value="${user.home}/.BuildServer" />
<property name="src" value="./src" />
<property name="build" value="./build" />
<property name="dist" value="./dist" />
<property name="compile.debug" value="true" />
<property name="tc.dev" value="${tc.home}/devPackage" />
<property name="tc.lib" value="${tc.home}/webapps/ROOT/WEB-INF/lib" />
<property name="deploy.dir" value="${tc.data.dir}/plugins" />
<path id="compile.classpath">
<fileset dir="${tc.dev}">
<include name="server-api.jar" />
<include name="common-api.jar" />
</fileset>
<fileset dir="${tc.lib}">
<include name="slf4j-api-1.5.11.jar" />
<include name="jdom.jar" />
</fileset>
<fileset dir="lib">
<include name="irclib.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" debug="${compile.debug}" source="1.5" target="1.5">
<classpath refid="compile.classpath" />
</javac>
</target>
<target name="dist" depends="compile">
<copy todir="${build}/buildServerResources">
<fileset dir="buildServerResources" />
</copy>
<jar destfile="${dist}/ircnotifier.jar" basedir="build">
<metainf dir="META-INF">
<include name="*" />
</metainf>
</jar>
<copy file="teamcity-plugin.xml" todir="${dist}" />
<copy file="lib/irclib.jar" todir="${dist}" />
<zip destfile="${dist}/ircnotifier.zip" basedir="${dist}" includes="*.jar *.xml" />
</target>
<target name="deploy" depends="dist">
<copy file="${dist}/ircnotifier.zip" todir="${deploy.dir}" />
</target>
<target name="clean" description="Removes previous build">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>