forked from tonytomov/jqGrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·85 lines (75 loc) · 2.76 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0"?>
<project name="jqGrid" default="build" basedir=".">
<!-- define the path of compressor in this file -->
<property file="build.properties" />
<target name="init">
<mkdir dir="${distdir}" />
</target>
<target name="jqgrid" depends="init">
<concat destfile="${distdir}/${target}">
<fileset file="js/grid.base.js"/>
<fileset file="js/grid.custom.js"/>
<fileset file="js/jqModal.js"/>
<fileset file="js/jqDnR.js"/>
<fileset file="js/JsonXml.js"/>
<fileset file="js/jquery.fmatter.js"/>
<fileset file="js/grid.common.js"/>
<fileset file="js/grid.filter.js"/>
<fileset file="js/grid.formedit.js"/>
<fileset file="js/grid.inlinedit.js"/>
<fileset file="js/grid.celledit.js"/>
<fileset file="js/grid.subgrid.js"/>
<fileset file="js/grid.treegrid.js"/>
<fileset file="js/grid.grouping.js"/>
<fileset file="js/grid.import.js"/>
<fileset file="js/grid.jqueryui.js"/>
<fileset file="js/grid.tbltogrid.js"/>
<fileset file="js/grid.pivot.js"/>
</concat>
</target>
<target name="jqgrid.min" depends="jqgrid">
<apply executable="java" parallel="false" verbose="true" failonerror="true" dest="${distdir}">
<fileset dir="${distdir}">
<include name="${target}" />
</fileset>
<arg line="-jar" />
<arg path="${GoogleCompiler}" />
<arg value="--warning_level" />
<arg value="QUIET" />
<arg value="--js_output_file" />
<targetfile />
<arg value="--js" />
<mapper type="glob" from="${target}" to="${target.min}" />
</apply>
<echo message="${target.min} built." />
</target>
<target name="minfiles">
<mkdir dir="${distdir}/min" />
<apply executable="java" parallel="false" verbose="true" failonerror="true" dest="${distdir}/min">
<fileset dir="${srcdir}">
<include name="*.js" />
</fileset>
<arg line="-jar" />
<arg path="${GoogleCompiler}" />
<arg value="--warning_level" />
<arg value="QUIET" />
<arg value="--js_output_file" />
<targetfile />
<arg value="--js" />
<mapper type="glob" from="*.js" to="*.js" />
</apply>
</target>
<target name="i18n">
<mkdir dir="${distdir}/i18n" />
<copy todir="${distdir}/i18n" overwrite="true">
<fileset dir="${srcdir}/i18n">
<include name="grid.locale-*.js" />
</fileset>
</copy>
</target>
<target name="build" depends="jqgrid, jqgrid.min, i18n, minfiles"/>
<target name="clean">
<delete dir="${distdir}" />
</target>
<target name="all" depends="clean,build"/>
</project>