forked from naku/libchart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
68 lines (56 loc) · 2.26 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
68
<?xml version="1.0" encoding="UTF-8"?>
<project name="Libchart" default="package" basedir=".">
<property name="version" value="1.3"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="${build.dir}/dist"/>
<property name="package.dir" value="${build.dir}/package"/>
<!-- =======================================================================
========================== Clean project ==============================
======================================================================= -->
<target name="clean">
<echo>
. =======================================================
. Clean project
. Build dir = ${build.dir}
. =======================================================
</echo>
<delete dir="${build.dir}" />
</target>
<!-- =======================================================================
=================== Create exploded distribution ======================
======================================================================= -->
<target name="dist">
<echo>
. =======================================================
. Create exploded distribution
. Distribution dir. = ${dist.dir}
. =======================================================
</echo>
<mkdir dir="${dist.dir}" />
<mkdir dir="${dist.dir}/libchart" />
<copy todir="${dist.dir}/libchart">
<fileset dir=".">
<include name="libchart/**" />
<include name="demo/**" />
<exclude name="demo/generated/**" />
</fileset>
</copy>
<mkdir dir="${dist.dir}/libchart/demo/generated" />
</target>
<!-- =======================================================================
==================== Create package distribution ======================
======================================================================= -->
<target name="package" depends="dist">
<echo>
. =======================================================
. Create package distribution
. Distribution dir. = ${dist.dir}
. Packate dir. = ${package.dir}
. =======================================================
</echo>
<mkdir dir="${package.dir}" />
<tar destfile="${package.dir}/libchart-${version}.tar.gz" compression="gzip">
<tarfileset dir="${dist.dir}"/>
</tar>
</target>
</project>