-
Notifications
You must be signed in to change notification settings - Fork 308
/
build.xml
200 lines (180 loc) · 6.5 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<project name="Dex" default="dist" basedir=".">
<description>Dex Build File</description>
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist/dex" />
<property name="bin" location="bin" />
<target name="dist" depends="Dex.jar">
<tstamp />
<mkdir dir="${dist}" />
<mkdir dir="${dist}/data" />
<mkdir dir="${dist}/lib" />
<mkdir dir="${dist}/lib/selenium" />
<mkdir dir="${dist}/lib/rserve" />
<mkdir dir="${dist}/output" />
<mkdir dir="${dist}/project" />
<mkdir dir="${dist}/scripts" />
<mkdir dir="${dist}/template" />
<mkdir dir="${dist}/output" />
<copy file="resources/Dex.css" todir="${dist}" />
<copy file="Dex.jar" todir="${dist}" />
<copy file="Dex.ico" todir="${dist}" />
<copy file="lib/dex-javafx.jar" todir="${dist}/lib" />
<copy todir="${dist}/lib">
<fileset dir="lib" includes="**.jar" />
</copy>
<copy todir="${dist}/lib/selenium">
<fileset dir="lib/selenium" includes="**.jar" />
</copy>
<copy todir="${dist}/lib/rserve">
<fileset dir="lib/rserve" includes="**.jar" />
</copy>
<copy todir="${dist}/project">
<fileset dir="project/dist" includes="**/*" />
</copy>
<copy todir="${dist}/template">
<fileset dir="template" includes="**/*" />
</copy>
<copy todir="${dist}">
<fileset file="docs/dex.bmp" />
</copy>
<copy todir="${dist}/scripts">
<fileset dir="scripts" includes="**/*" />
</copy>
<!-- copy file="docs/dex/Dex.html" tofile="${dist}/docs/dex/index.html" -->
<!-- DATA FILES -->
<copy file="data/presidents.csv" todir="${dist}/data" />
<copy file="data/PrimeMinisters.csv" todir="${dist}/data" />
<copy file="data/nutrients.csv" todir="${dist}/data" />
<copy file="data/gc.csv" todir="${dist}/data" />
<copy file="data/nodes.csv" todir="${dist}/data" />
<copy file="data/jstat1.log" todir="${dist}/data" />
<copy file="data/iris.csv" todir="${dist}/data" />
<copy file="data/BirthsAndDeaths.csv" todir="${dist}/data" />
<copy file="data/football.csv" todir="${dist}/data" />
<copy file="data/sales.csv" todir="${dist}/data" />
<copy file="data/ghettysburg_address.txt" todir="${dist}/data" />
<copy file="data/diffdata.csv" todir="${dist}/data" />
<copy file="data/bank-data.csv" todir="${dist}/data" />
<copy file="data/quartet.csv" todir="${dist}/data" />
<copy file="data/population.csv" todir="${dist}/data" />
<copy file="data/thrones.csv" todir="${dist}/data" />
<copy file="data/drwho.csv" todir="${dist}/data" />
<copy file="data/alcohol_by_country.csv" todir="${dist}/data" />
<copy file="data/OJ_Timeline.csv" todir="${dist}/data" />
<copy file="data/WWI_Timeline.csv" todir="${dist}/data" />
<copy file="data/crime.csv" todir="${dist}/data" />
<copy file="data/cars2013.csv" todir="${dist}/data" />
<copy file="data/CircularHeat.csv" todir="${dist}/data" />
<copy file="data/president_timeline.csv" todir="${dist}/data" />
<copy file="data/DefenseBudgets.csv" todir="${dist}/data" />
<copy todir="${dist}/web">
<fileset dir="web" />
</copy>
<copy todir="${dist}/util">
<fileset dir="util" />
</copy>
<!-- Javascript dependencies -->
<copy todir="${dist}/javascript/c3/latest">
<fileset dir="javascript/c3/latest" />
</copy>
<copy todir="${dist}/javascript/d3/latest">
<fileset dir="javascript/d3/latest" />
</copy>
<copy todir="${dist}/javascript/d3plus/latest">
<fileset dir="javascript/d3plus/latest" />
</copy>
<copy todir="${dist}/javascript/d3-ext">
<fileset dir="javascript/d3-ext" />
</copy>
<copy todir="${dist}/javascript/dexjs/latest">
<fileset dir="javascript/dexjs/latest" />
</copy>
<copy todir="${dist}/javascript/jquery/latest">
<fileset dir="javascript/jquery/latest" />
</copy>
<copy todir="${dist}/javascript/underscore/latest">
<fileset dir="javascript/underscore/latest" />
</copy>
<copy todir="${dist}/javascript/p5/latest">
<fileset dir="javascript/p5/latest" />
</copy>
<copy todir="${dist}/javascript/jqueryui/latest">
<fileset dir="javascript/jqueryui/latest" />
</copy>
<copy todir="${dist}/javascript/touchpunch/latest">
<fileset dir="javascript/touchpunch/latest" />
</copy>
<copy todir="${dist}/javascript/nvd3/latest">
<fileset dir="javascript/nvd3/latest" />
</copy>
<copy todir="${dist}/javascript/processing/latest">
<fileset dir="javascript/processing/latest" />
</copy>
<copy todir="${dist}/javascript/three/latest">
<fileset dir="javascript/three/latest" />
</copy>
<copy todir="${dist}/javascript/vis/latest">
<fileset dir="javascript/vis/latest" />
</copy>
<copy todir="${dist}/javascript/vivagraph/latest">
<fileset dir="javascript/vivagraph/latest" />
</copy>
<copy todir="${dist}/javascript/webgl">
<fileset dir="javascript/webgl" />
</copy>
<copy todir="${dist}/javascript/codemirror/latest">
<fileset dir="javascript/codemirror/latest" />
</copy>
<copy todir="${dist}/javascript/echarts/latest">
<fileset dir="javascript/echarts/latest" />
</copy>
<copy todir="${dist}/javascript/elegans/latest">
<fileset dir="javascript/elegans/latest" />
</copy>
<copy todir="${dist}/javascript/sql/latest">
<fileset dir="javascript/sql/latest" />
</copy>
<copy todir="${dist}/javascript/jqGrid/latest">
<fileset dir="javascript/jqGrid/latest" />
</copy>
<!-- Permissions -->
<chmod perm="a+rx" file="${dist}/output" />
<chmod perm="a+rx" file="${dist}/project" />
<chmod perm="a+rx" file="${dist}/data" />
<chmod perm="a+rx" file="${dist}/util" />
<chmod perm="a+rx" file="${dist}/util/*" />
</target>
<path id="libraries.path">
<fileset dir="lib">
<include name="**/*.jar" />
<include name="selenium/*.jar" />
</fileset>
<fileset dir="resources">
<include name="**/**" />
</fileset>
</path>
<!-- Going to a push model rather than pull model
<target name="dex-javafx">
<jar destfile="lib/dex-javafx.jar" basedir="../JavaFX/bin" />
</target>
<target name="dex-tmi">
<jar destfile="lib/dex-tmi.jar" basedir="../TMI/bin" />
</target>
-->
<target name="Dex.jar" depends="">
<manifestclasspath property="manifest.classpath" jarfile="Dex.jar">
<classpath refid="libraries.path" />
</manifestclasspath>
<jar destfile="Dex.jar" basedir="bin">
<manifest>
<attribute name="Main-Class" value="com.dexvis.dex.Dex" />
<attribute name="Class-Path" value="${manifest.classpath}" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${dist}" />
</target>
</project>