-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
121 lines (110 loc) · 5.09 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="utf-8"?>
<project name="DMPlanner" default=".help">
<!--
The build-impl.xml file imported here contains the guts of the build process. It is
a great idea to read that file to understand how the process works, but it is best to
limit your changes to this file.
-->
<import file="${basedir}/.sencha/app/build-impl.xml"/>
<!--
The following targets can be provided to inject logic before and/or after key steps
of the build process:
The "init-local" target is used to initialize properties that may be personalized
for the local machine.
<target name="-before-init-local"/>
<target name="-after-init-local"/>
The "clean" target is used to clean build output from the build.dir.
<target name="-before-clean"/>
<target name="-after-clean"/>
The general "init" target is used to initialize all other properties, including
those provided by Sencha Cmd.
<target name="-before-init"/>
<target name="-after-init"/>
The "page" target performs the call to Sencha Cmd to build the 'all-classes.js' file.
<target name="-before-page"/>
<target name="-after-page"/>
The "build" target performs the call to Sencha Cmd to build the application.
<target name="-before-build"/>
<target name="-after-build"/>
-->
<!--
This target minifies and concatenates the OpenLayers, FileSaver, jsPDF js with the ExtJS js.
A separate IE<=9 build is also included.
-->
<target name="-after-page">
<move file="${build.classes.file}" tofile="${build.classes.file}.tmp"/>
<delete file="${build.dir}/IE9_${build.classes.name}" />
<x-sencha-command>fs
minify
--from=${basedir}/lib/marked/lib/marked.js
--to=${build.compile.temp.dir}/mk.js
--closure
and
minify
--from=${basedir}/lib/filesaver/FileSaver.js
--to=${build.compile.temp.dir}/fsout.js
--closure
and
minify
--from=${basedir}/lib/jspdf/dist/jspdf.debug.js
--to=${build.compile.temp.dir}/pdfout.js
--closure
and
minify
--from=${basedir}/lib/filereader/filereader.js
--to=${build.compile.temp.dir}/frout.js
--closure
and
concatenate
--from=${build.compile.temp.dir}/mk.js,${build.compile.temp.dir}/pdfout.js,${build.compile.temp.dir}/fsout.js,${build.compile.temp.dir}/frout.js,${build.classes.file}.tmp
--to=${build.classes.file}
and
concatenate
--from=${build.compile.temp.dir}/mk.js,${build.compile.temp.dir}/frout.js,${build.classes.file}.tmp
--to=${build.dir}/IE9_${build.classes.name}</x-sencha-command>
<delete file="${build.compile.temp.dir}/pdfout.js" />
<delete file="${build.compile.temp.dir}/frout.js" />
<delete file="${build.compile.temp.dir}/fsout.js" />
<delete file="${build.compile.temp.dir}/mk.js" />
<delete file="${build.classes.file}.tmp" />
<x-run-if-true value="${enable.openlayers.build}">
<move file="${build.classes.file}" tofile="${build.classes.file}.tmp"/>
<move file="${build.dir}/IE9_${build.classes.name}" tofile="${build.dir}/IE9_${build.classes.name}.tmp"/>
<x-sencha-command>fs
minify
--from=${basedir}/lib/openlayers/OpenLayers.debug.js
--to=${build.compile.temp.dir}/ol.js
--closure
and
concatenate
--from=${build.compile.temp.dir}/ol.js,${build.classes.file}.tmp
--to=${build.classes.file}
and
concatenate
--from=${build.compile.temp.dir}/ol.js,${build.dir}/IE9_${build.classes.name}.tmp
--to=${build.dir}/IE9_${build.classes.name}</x-sencha-command>
<delete file="${build.compile.temp.dir}/ol.js" />
<delete file="${build.classes.file}.tmp" />
<delete file="${build.dir}/IE9_${build.classes.name}.tmp" />
</x-run-if-true>
</target>
<!--
This target compresses and concatenates the OpenLayers css with the ExtJS css.
We need to @include the ol.css due to css file splitting.
-->
<target name="-after-sass">
<x-run-if-true value="${enable.openlayers.build}">
<move file="${app.out.css.compressed}" tofile="${app.out.css.compressed}.tmp"/>
<copy todir="${build.dir}/img">
<fileset dir="${app.dir}/lib/openlayers/img"/>
</copy>
<x-compress-css srcfile="${app.dir}/lib/openlayers/theme/default/${openlayers.stylesheet.name}"
outfile="${build.resources.dir}/ol.css"/>
<concat destfile="${app.out.css.compressed}">
<header filtering="no" trimleading="yes" trim="true">@import 'ol.css';</header>
<fileset file="${app.out.css.compressed}.tmp"/>
</concat>
<delete file="${app.out.css.compressed}.tmp" />
</x-run-if-true>
</target>
</project>