-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
52 lines (44 loc) · 1.86 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
<?xml version="1.0" encoding="utf-8" ?>
<project name="gwt-styles" default="build" basedir=".">
<!-- Configure path to GWT SDK -->
<property name="gwt.sdk" location="c:/devel/gwt-0.0.0" />
<property name="module.name" value="${ant.project.name}"/>
<property name="jarfile.name" value="${module.name}.jar"/>
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="temp" location="temp"/>
<property name="dist.root" value="${dist}/${module.name}"/>
<path id="project.class.path">
<pathelement location="build" />
<pathelement location="${gwt.sdk}/gwt-user.jar" />
<fileset dir="${gwt.sdk}" includes="gwt-dev*.jar" />
</path>
<target name="clean" description="Cleans this project">
<delete dir="${build}"/>
<delete dir="${dist}"/>
<delete dir="${temp}"/>
</target>
<target name="init" depends="clean" description="Create folders">
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<mkdir dir="${temp}"/>
</target>
<target name="copy.scr" depends="init" description="Copy source to output folder">
<copy todir="${temp}">
<fileset dir="${src}" />
</copy>
</target>
<target name="build" depends="copy.scr" description="Build this project">
<jar destfile="${build}/${module.name}.jar" basedir="temp" />
</target>
<target name="jar" depends="build" description="Create a jar file">
<copy file="${build}/${module.name}.jar" todir="${dist}"/>
<delete dir="${temp}"/>
</target>
<target name="dist" depends="jar" description="Create tar and zip files that contain jar">
<tar basedir="${build}" destfile="${dist}/${module.name}.tar.bz2" compression="bzip2" />
<zip basedir="${build}" destfile="${dist}/${module.name}.zip" compress="true" />
</target>
</project>