-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
124 lines (111 loc) · 4.16 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
122
123
124
<project name="echoe-demo" default="build" basedir=".">
<property name="version" value="3.0.0"/>
<taskdef
name="yui-compressor"
classname="net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask">
<classpath>
<pathelement location="build-lib/yui-compressor-ant-task-0.3.jar"/>
<pathelement location="build-lib/yuicompressor-2.4.2.jar"/>
</classpath>
</taskdef>
<target name="clean">
<delete dir="tmp"/>
<delete dir="out"/>
<delete dir="release"/>
</target>
<target name="jslint">
<java fork="true" jar="resource/JSLint/rhino.jar">
<arg value="resource/JSLint/jslint.js"/>
<arg value="src/app/"/>
</java>
</target>
<target name="init">
<mkdir dir="tmp"/>
<!-- Copy non-JS files, path structure. -->
<copy todir="out/">
<fileset dir="src/">
<exclude name="**/*.js"/>
</fileset>
</copy>
<!-- Copy non-JS files, path structure. -->
<copy todir="out/src/">
<fileset dir="src/">
<include name="**/*.js"/>
<include name="**/*.html"/>
</fileset>
</copy>
</target>
<target name="compress.modules">
<mkdir dir="out"/>
<yui-compressor
warn="false"
munge="true"
linebreakposition="1000"
preserveallsemicolons="false"
jssuffix=".js"
fromdir="src/"
todir="out/">
<include name="**/*.js"/>
</yui-compressor>
</target>
<target name="compress.boot">
<concat destfile="tmp/AppCompressed.js" fixlastline="true">
<filelist dir="src/lib/corejs/">
<file name="Core.js"/>
<file name="Core.Web.js"/>
</filelist>
<filelist dir="src/lib/echo/">
<file name="Application.js"/>
<file name="Render.js"/>
<file name="Sync.js"/>
<file name="Serial.js"/>
<file name="Client.js"/>
<file name="FreeClient.js"/>
<file name="Sync.ArrayContainer.js"/>
<file name="Sync.Button.js"/>
<file name="Sync.ContentPane.js"/>
<file name="Sync.Label.js"/>
<file name="Sync.SplitPane.js"/>
<file name="Sync.WindowPane.js"/>
</filelist>
<filelist dir="src/lib/extras/">
<file name="Extras.js"/>
<file name="Application.AccordionPane.js"/>
<file name="Sync.AccordionPane.js"/>
<file name="Application.Menu.js"/>
<file name="Sync.Menu.js"/>
<file name="Application.TransitionPane.js"/>
<file name="Sync.TransitionPane.js"/>
</filelist>
<filelist dir="src/app/">
<file name="Main.js"/>
<file name="Util.js"/>
<file name="Default.StyleSheet.js"/>
<file name="Messages.js"/>
<file name="WelcomeScreen.js"/>
</filelist>
</concat>
<yui-compressor
warn="false"
munge="true"
linebreakposition="1000"
preserveallsemicolons="false"
jssuffix=".js"
fromdir="tmp/"
todir="out/">
<include name="AppCompressed.js"/>
</yui-compressor>
</target>
<target name="build" depends="clean,init,compress.modules,compress.boot">
</target>
<target name="release" depends="clean,jslint,build">
<mkdir dir="release"/>
<copy todir="release/e3d">
<fileset dir="out/"/>
</copy>
<tar tarfile="tmp/echo3-demo-${version}.tar" basedir="release" longfile="gnu"/>
<delete dir="release/e3d"/>
<gzip src="tmp/echo3-demo-${version}.tar" zipfile="release/echo3-demo-${version}.tgz"/>
<delete file="release/echo3-demo-${version}.tar"/>
</target>
</project>