-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
87 lines (74 loc) · 2.98 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
<!--+
|
| +===========================+
| | Timegrid Build System |
| +===========================+
|
| This is just for bundling and minifying javascript and CSS files.
|
+-->
<project default="bundle" basedir="." name="Timegrid">
<property name="webapp.dir" value="src/webapp"/>
<property name="api.dir" value="${webapp.dir}/api"/>
<property name="site.dir" value="${webapp.dir}/site"/>
<property name="scripts.dir" value="${api.dir}/scripts"/>
<property name="docs.dir" value="${site.dir}/docs"/>
<property name="jsdoc.dir" value="tools/jsdoc"/>
<target name="tasks">
<taskdef name="jsmin"
classname="edu.mit.simile.jsminTask.JSMinTask"
classpath="tools/jsminTask.jar"/>
</target>
<target name="bundle" depends="tasks">
<jsmin output="${api.dir}/timegrid-bundle.js">
<fileset dir="src/webapp/api/scripts/">
<include name="timegrid.js" />
<include name="util/util.js" />
</fileset>
<fileset dir="src/webapp/api/scripts/">
<include name="util/debug.js" />
<include name="util/date.js" />
<include name="util/excanvas.pack.js" />
<include name="util/jquery.corner.js" />
<include name="util/jquery.prettybox.js" />
<include name="util/dstructs/dstructs.js" />
<include name="listeners.js" />
<include name="sources/default.js" />
</fileset>
<fileset dir="src/webapp/api/scripts/">
<include name="controls.js" />
<include name="grid.js" />
<include name="themes.js" />
<include name="labellers.js" />
<include name="layouts/layout.js" />
</fileset>
<fileset dir="src/webapp/api/scripts/">
<include name="sources/recurring.js" />
<include name="layouts/nmonth.js" />
<include name="layouts/nday.js" />
<include name="layouts/weekly.js" />
<include name="layouts/monthly.js" />
<include name="layouts/property.js" />
</fileset>
</jsmin>
<concat destfile="src/webapp/api/timegrid-bundle.css">
<fileset dir="src/webapp/api/styles/">
<include name="**/*.css" />
</fileset>
</concat>
<jsmin output="${api.dir}/locales/en/timegrid-en-bundle.js">
<fileset dir="src/webapp/api/locales/en/scripts/">
<include name="**/*.js" />
</fileset>
</jsmin>
</target>
<target name="docs">
<java jar="${jsdoc.dir}/app/js.jar" fork="true" dir="${jsdoc.dir}">
<arg value="app/run.js"/>
<arg value="-t=templates/html"/>
<arg value="-r"/>
<arg value="-d=../../${docs.dir}"/>
<arg value="../../src"/>
</java>
</target>
</project>