This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkickstart.xml
422 lines (357 loc) · 16.1 KB
/
kickstart.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- README: Downloading external libraries for GeoGebra
This build file is about to download all necessary external libraries
from the Internet. Most files are downloaded from the GeoGebra server
to ensure availability.
-->
<!--
GeoGebra kickstart build script
@author Zoltan Kovacs <[email protected]>
-->
<project default="kickstart-20110923">
<target name="osarchinfo">
<echo message="This is a ${os.name} running on ${os.arch}"/>
</target>
<target name="info">
<echo message="****************"/>
<echo message="* NOW PRESS F5 *"/>
<echo message="****************"/>
</target>
<target name="kickstart-20110923" depends="classpath-open, lib-build-geogebra5, lib-runtime, classpath-close, info"
description="(SUGGESTED) For Eclipse developers: to create GeoGebra 4 or 5 builds">
</target>
<target name="geogebra4-developer" depends="lib-build-geogebra4, lib-runtime"
description="(NOT WORKING YET) For Eclipse developers: to create GeoGebra 4 builds">
</target>
<target name="geogebra5-developer" depends="lib-build-geogebra5, lib-runtime"
description="For Eclipse developers: to create GeoGebra 5 builds">
</target>
<target name="geogebra4-developer-commandline" depends="geogebra4-developer, ecj"
description="For command line developers (mostly Unix): to create GeoGebra 4 builds">
</target>
<target name="geogebra4-packager" depends="geogebra4-developer, lib-pack"
description="For JAR testers: to create GeoGebra 4 JAR packages">
</target>
<target name="geogebra5-packager" depends="geogebra5-developer, lib-pack"
description="(SUGGESTED) For JAR testers: to create GeoGebra 5 JAR packages">
</target>
<target name="geogebra4-packager-commandline" depends="geogebra4-developer-commandline, lib-pack"
description="For command line JAR testers (mostly Unix): to create GeoGebra 4 JAR packages">
</target>
<!-- these targets should come from the GeoGebra repository (currently) -->
<target name="mpreduce" depends="mpreduce-geogebra"/>
<target name="jogl1" depends="jogl1-geogebra"/>
<target name="jogl2" depends="jogl2-geogebra"/>
<target name="jlatexmath" depends="jlatexmath-geogebra"/>
<target name="p200ant" depends="p200ant-geogebra"/>
<target name="jsobject" depends="jsobject-geogebra"/>
<target name="mac_extensions" depends="mac_extensions-geogebra"/>
<target name="vernier" depends="vernier-geogebra"/>
<target name="javacc" depends="javacc-geogebra"/>
<target name="ecj" depends="ecj-geogebra"/>
<!-- download external libraries -->
<target name="lib" depends="lib-runtime, lib-build-geogebra5, lib-pack"
description="(FALLBACK) Download all packages for the current OS and architecture">
</target>
<target name="lib-build-geogebra4" depends="mpreduce, javacc, jsobject, mac_extensions, jlatexmath"
description="Download all packages needed for a full build for the current OS and architecture (for GeoGebra 4)">
</target>
<target name="lib-build-geogebra5" depends="lib-build-geogebra4, jogl1, jogl2"
description="Download all packages needed for a full build for the current OS and architecture (for GeoGebra 5)">
</target>
<target name="lib-pack" depends="proguard, p200ant"
description="Download all packages needed for creating the JAR files">
</target>
<target name="lib-runtime" depends="jlatexmath, vernier"
description="Download all packages needed for runtime use">
</target>
<!-- detecting operating system and architecture -->
<condition property="winnt-i386">
<os family="winnt" arch="i386"/>
</condition>
<condition property="winnt-amd64">
<os family="winnt" arch="amd64"/>
</condition>
<condition property="winnt">
<os family="winnt"/>
</condition>
<condition property="mac">
<os family="mac"/>
</condition>
<condition property="unix-i386">
<os family="unix" arch="i386"/>
</condition>
<condition property="unix-amd64">
<os family="unix" arch="amd64"/>
</condition>
<!-- download jlatexmath-minimal.zip directly from Calixte Denizet's repository -->
<target name="jlatexmath-calixte">
<mkdir dir="lib/download"/>
<get src="http://forge.scilab.org/index.php/p/jlatexmath/downloads/253/get/"
dest="lib/download/jlatexmath-minimal.zip" usetimestamp="true"/>
<unzip src="download/jlatexmath-minimal.zip" dest="lib/">
<patternset>
<include name="jlm_*.jar"/>
</patternset>
<mapper type="glob" from="*.jar" to="*.jar"/>
</unzip>
<unzip src="lib/download/jlatexmath-minimal.zip" dest="lib/">
<patternset>
<include name="jlatexmath-*.jar"/>
</patternset>
<mapper type="glob" from="jlatexmath-minimal-*.jar" to="jlatexmath.jar"/>
</unzip>
</target>
<!-- download jlatexmath from GeoGebra repository -->
<target name="jlatexmath-geogebra">
<get src="http://www.geogebra.org/download/lib/jlatexmath.jar" dest="lib/jlatexmath.jar" usetimestamp="true"/>
<get src="http://www.geogebra.org/download/lib/jlm_cyrillic.jar" dest="lib/jlm_cyrillic.jar" usetimestamp="true"/>
<get src="http://www.geogebra.org/download/lib/jlm_greek.jar" dest="lib/jlm_greek.jar" usetimestamp="true"/>
</target>
<!-- download p200ant from GeoGebra repository -->
<target name="p200ant-geogebra">
<get src="http://www.geogebra.org/download/lib/build/tools_p200ant_java5only.jar" dest="lib/build/tools_p200ant_java5only.jar"
usetimestamp="true"/>
</target>
<!-- download jsobject from GeoGebra repository -->
<target name="jsobject-geogebra">
<get src="http://www.geogebra.org/download/lib/lib_jsobject.jar" dest="lib/build/lib_jsobject.jar"
usetimestamp="true"/>
</target>
<!-- download lib_mac_extensions from GeoGebra repository -->
<target name="mac_extensions-geogebra">
<get src="http://www.geogebra.org/download/lib/lib_mac_extensions.jar" dest="lib/build/lib_mac_extensions.jar"
usetimestamp="true"/>
</target>
<!-- download vernier from GeoGebra repository -->
<target name="vernier-geogebra" depends="vernier-common-geogebra, vernier-windows-geogebra"/>
<target name="vernier-common-geogebra">
<get src="http://www.geogebra.org/download/lib/vernier_ccsd-macintel-static.jar" dest="lib/vernier_ccsd-macintel-static.jar"
usetimestamp="true"/>
<get src="http://www.geogebra.org/download/lib/vernier_ccsd-mac-static.jar" dest="lib/vernier_ccsd-mac-static.jar"
usetimestamp="true"/>
<get src="http://www.geogebra.org/download/lib/vernier_ccsd-win.jar" dest="lib/vernier_ccsd-win.jar"
usetimestamp="true"/>
</target>
<target name="vernier-windows-geogebra" if="winnt">
<unjar src="lib/vernier_ccsd-win.jar" dest="lib/">
<patternset>
<include name="*.dll"/>
</patternset>
<mapper type="glob" from="*" to="../*"/>
</unjar>
</target>
<!-- download ecj -->
<target name="ecj-eclipse">
<mkdir dir="lib/build"/>
<get
src="http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.6.2-201102101200/ecj-3.6.2.jar&url=http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.6.2-201102101200/ecj-3.6.2.jar&mirror_id=324"
dest="lib/build/ecj-3.6.2.jar" usetimestamp="true"/>
</target>
<target name="ecj-geogebra">
<mkdir dir="lib/build"/>
<get
src="http://www.geogebra.org/download/lib/build/ecj-3.6.2.jar"
dest="lib/build/ecj-3.6.2.jar" usetimestamp="true"/>
</target>
<!-- download mpreduce default.img from GeoGebra repository -->
<target name="mpreduce-geogebra">
<get
src="http://www.geogebra.org/download/lib/build/mpreduce/default.img"
dest="default.img" usetimestamp="true"/>
</target>
<!-- download proguard -->
<target name="proguard">
<mkdir dir="lib/build"/>
<mkdir dir="lib/download"/>
<get
src="http://downloads.sourceforge.net/project/proguard/proguard/4.6/proguard4.6.zip?&use_mirror=heanet"
dest="lib/download/proguard46.zip" usetimestamp="true"/>
<unzip src="lib/download/proguard46.zip" dest="lib/download">
<patternset>
<include name="proguard4.6/lib/proguard.jar"/>
</patternset>
<mapper type="glob" from="proguard4.6/lib/proguard.jar" to="../build/tools_proguard46.jar"/>
</unzip>
</target>
<!-- download javacc from GeoGebra repository -->
<target name="javacc-geogebra">
<mkdir dir="lib/build/javacc"/>
<get src="http://www.geogebra.org/download/lib/build/javacc/javacc.jar" dest="lib/build/javacc/javacc.jar"
usetimestamp="true"/>
</target>
<!-- download javacc -->
<target name="javacc-javanet">
<mkdir dir="lib/build"/>
<mkdir dir="lib/download"/>
<get
src="http://java.net/projects/javacc/downloads/download/javacc-5.0.zip"
dest="lib/download/javacc-5.0.zip" usetimestamp="true"/>
<unzip src="lib/download/javacc-5.0.zip" dest="lib/download">
<patternset>
<include name="javacc-5.0/bin/lib/javacc.jar"/>
</patternset>
<mapper type="glob" from="javacc-5.0/bin/lib/javacc.jar" to="../build/javacc/javacc.jar"/>
</unzip>
</target>
<!-- dowload jogl1 from GeoGebra repository -->
<target name="jogl1-geogebra" depends="jogl1-linux-geogebra, jogl1-macosx-geogebra, jogl1-windows-geogebra, jogl1-jar-geogebra"/>
<target name="jogl1-jar-geogebra">
<mkdir dir="lib/build/jogl1/jar"/>
<mkdir dir="lib/download"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl1/jogl1-jar.zip"
dest="lib/download/jogl1-jar.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl1-jar.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl1/*"/>
</unzip>
<echo file=".classpath" append="true">
</classpathentry>
<classpathentry kind="lib" path="lib/build/jogl1/jar/gluegen-rt.jar"/>
<classpathentry kind="lib" path="lib/build/jogl1/jar/jogl.jar"/>
</echo>
</target>
<target name="jogl1-linux-geogebra" depends="jogl1-linux-amd64-geogebra, jogl1-linux-i586-geogebra"/>
<target name="jogl1-windows-geogebra" depends="jogl1-winnt-amd64-geogebra, jogl1-winnt-i586-geogebra"/>
<target name="jogl1-linux-amd64-geogebra" if="unix-amd64">
<mkdir dir="lib/download"/>
<mkdir dir="lib/build/jogl1/linux-amd64"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl1/jogl1-linux-amd64.zip"
dest="lib/download/jogl1-linux-amd64.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl1-linux-amd64.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl1/*"/>
</unzip>
<echo file=".classpath" append="true">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="geogebra/lib/build/jogl1/linux-amd64"/>
</attributes>
</echo>
</target>
<target name="jogl1-linux-i586-geogebra" if="unix-i386">
<mkdir dir="lib/download"/>
<mkdir dir="lib/build/jogl1/linux-i586"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl1/jogl1-linux-i586.zip"
dest="lib/download/jogl1-linux-i586.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl1-linux-i586.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl1/*"/>
</unzip>
<echo file=".classpath" append="true">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="geogebra/lib/build/jogl1/linux-i586"/>
</attributes>
</echo>
</target>
<target name="jogl1-macosx-geogebra" if="mac">
<mkdir dir="lib/build/jogl1/macosx"/>
<mkdir dir="lib/download"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl1/jogl1-macosx.zip"
dest="lib/download/jogl1-macosx.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl1-macosx.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl1/*"/>
</unzip>
<echo file=".classpath" append="true">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="geogebra/lib/build/jogl1/macosx"/>
</attributes>
</echo>
</target>
<target name="jogl1-winnt-amd64-geogebra" if="winnt-amd64">
<mkdir dir="lib/download"/>
<mkdir dir="lib/build/jogl1/windows-amd64"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl1/jogl1-windows-amd64.zip"
dest="lib/download/jogl1-windows-amd64.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl1-windows-amd64.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl1/*"/>
</unzip>
<echo file=".classpath" append="true">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="geogebra/lib/build/jogl1/windows-amd64"/>
</attributes>
</echo>
</target>
<target name="jogl1-winnt-i586-geogebra" if="winnt-i386">
<mkdir dir="lib/build/jogl1/windows-i586"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl1/jogl1-windows-i586.zip"
dest="lib/download/jogl1-windows-i586.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl1-windows-i586.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl1/*"/>
</unzip>
<echo file=".classpath" append="true">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="geogebra/lib/build/jogl1/windows-i586"/>
</attributes>
</echo>
</target>
<!-- dowload jogl2 from GeoGebra repository -->
<target name="jogl2-geogebra" depends="jogl2-linux-geogebra, jogl2-macosx-geogebra, jogl2-windows-geogebra"/>
<target name="jogl2-linux-geogebra" if="unix">
<mkdir dir="lib/download"/>
<mkdir dir="lib/build/jogl2/linux-amd64"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl2/jogl2-linux-amd64.zip"
dest="lib/download/jogl2-linux-amd64.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl2-linux-amd64.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl2/*"/>
</unzip>
<mkdir dir="lib/build/jogl2/linux-i586"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl2/jogl2-linux-i586.zip"
dest="lib/download/jogl2-linux-i586.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl2-linux-i586.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl2/*"/>
</unzip>
</target>
<target name="jogl2-macosx-geogebra" if="mac">
<mkdir dir="lib/build/jogl2-macosx"/>
<mkdir dir="lib/download"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl2/jogl2-macosx.zip"
dest="lib/download/jogl2-macosx.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl2-macosx.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl2/*"/>
</unzip>
</target>
<target name="jogl2-windows-geogebra" if="winnt">
<mkdir dir="lib/download"/>
<mkdir dir="lib/build/jogl2/windows-amd64"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl2/jogl2-windows-amd64.zip"
dest="lib/download/jogl2-windows-amd64.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl2-windows-amd64.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl2/*"/>
</unzip>
<mkdir dir="lib/build/jogl2/windows-i586"/>
<get
src="http://www.geogebra.org/download/lib/build/jogl2/jogl2-windows-i586.zip"
dest="lib/download/jogl2-windows-i586.zip" usetimestamp="true"/>
<unzip src="lib/download/jogl2-windows-i586.zip" dest="lib/">
<mapper type="glob" from="*" to="build/jogl2/*"/>
</unzip>
</target>
<target name="classpath-open">
<echo file=".classpath" append="false"><?xml version="1.0" encoding="UTF-8"?>
<!-- This Eclipse .classpath file has been generated by the kickstart.xml Ant script.
Please do not edit. It will be overwritten each time you run kickstart.xml,
depending on your local OS and architecture settings. -->
<classpath>
<classpathentry excluding="build/|icons/|installer/|lib/|scripts/|webstart/|xsd/" kind="src" path="">
</echo>
</target>
<target name="classpath-close">
<echo file=".classpath" append="true">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="lib" path="lib/build/lib_jsobject.jar"/>
<classpathentry kind="lib" path="lib/build/lib_mac_extensions.jar"/>
<classpathentry kind="lib" path="lib/jlatexmath.jar"/>
<classpathentry kind="lib" path="lib/jlm_greek.jar"/>
<classpathentry kind="lib" path="lib/jlm_cyrillic.jar"/>
<classpathentry kind="output" path=""/>
</classpath>
</echo>
</target>
</project>