-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
63 lines (51 loc) · 1.75 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
<?xml version="1.0"?>
<project name="Header Build" default="build" basedir="">
<!-- ant-contrib -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="lib/ant-contrib-1.0b3.jar" />
</classpath>
</taskdef>
<!--
*************************************************
* STAGES *
*************************************************
-->
<!-- build for defaul -->
<target name="build-hvi">
<property file="build-hvi.properties" />
<antcall target="build" />
</target>
<!--
*************************************************
* BUILD MODES *
*************************************************
-->
<!-- default build -->
<target name="build" description="Build sequence.">
<antcall target="-prebuild-js" />
</target>
<!--
*************************************************
* PRIVATE TASKS *
*************************************************
-->
<target name="-prebuild-js">
<!-- cleaning-up prebuild directory -->
<echo message="Cleaning-up prebuild directory..." />
<delete dir="${dir.prebuild}" excludes="${file.excludes}" />
<!-- compress javascript files -->
<echo message="Compress javascript file..." />
<apply executable="java" parallel="false" dest="${dir.prebuild}">
<fileset dir="${dir.source}">
<include name="**/*.js" />
</fileset>
<arg line="-jar" />
<arg path="lib/${lib.yuicompressor}" />
<arg line="-o" />
<mapper type="identity" />
<targetfile />
<srcfile />
</apply>
</target>
</project>