-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
42 lines (37 loc) · 1.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
<?xml version="1.0"?>
<project name="gwttasks">
<target name="setup-properties">
<property name="build" value="build"/>
<property name="build.classes" value="${build}/classes"/>
<property name="build.testclasses" value="${build}/test-classes"/>
<property name="build.lib" value="${build}/lib"/>
<property name="version" value="0.2"/>
<property name="jarname" value="${build.lib}/${ant.project.name}-${version}.jar"/>
</target>
<target name="setup" depends="setup-properties">
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.testclasses}"/>
<mkdir dir="${build.lib}"/>
</target>
<target name="compile" depends="setup">
<javac
srcdir="src/main"
destdir="${build.classes}"
debug="true"
/>
</target>
<target name="antlib" depends="compile">
<copy todir="${build.classes}">
<fileset dir="src/main" includes="**/antlib.xml"/>
</copy>
<copy todir="${build.classes}/de/samaflost/gwttasks"
file="src/resources/build.xml"/>
<jar
destfile="${jarname}"
basedir="${build.classes}"
/>
</target>
<target name="clean" depends="setup-properties">
<delete dir="${build}"/>
</target>
</project>