-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
655 lines (464 loc) · 22.7 KB
/
build.xml
File metadata and controls
655 lines (464 loc) · 22.7 KB
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
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
<?xml version="1.0" encoding="utf-8"?>
<project name="Domination" default="jar" basedir=".">
<!--
Domination ant build file
http://domination.sourceforge.net
@author Yura Mamyrin <yura@yura.net>
@author Christian Weiske <cweiske@cweiske.de>
-->
<description>
This ant build file contains all the necessary information
to compile the Game classes, manual files and to generate
distribution files
</description>
<!-- this is needed for running the junit test in netbeans -->
<import file="nbproject/build-impl.xml"/>
<property name="game.version" value="1.1.1.5"/>
<!-- -->
<property name="game.name" value="Domination"/>
<property name="game.website" value="http://domination.sf.net/"/>
<property name="game.defaultmap" value="luca.map"/>
<property name="game.defaultcards" value="risk.cards"/>
<!-- -->
<!-- - ->
<property name="game.name" value="Risk"/>
<property name="game.website" value="http://risk.sf.net/"/>
<property name="game.defaultmap" value="board.map"/>
<property name="game.defaultcards" value="risk.cards"/>
<!- - -->
<filter token="game.version" value="${game.version}"/>
<filter token="game.name" value="${game.name}"/>
<filter token="game.website" value="${game.website}"/>
<filter token="game.defaultmap" value="${game.defaultmap}"/>
<filter token="game.defaultcards" value="${game.defaultcards}"/>
<property name="dir.build" location="build"/>
<property name="dir.build.classes" location="${dir.build}/classes"/>
<property name="dir.build.manual" location="${dir.build}/manual"/>
<!-- all required dirs and files will be copied to there before packing the zip -->
<property name="dir.build.game" location="${dir.build}/game"/>
<property name="dir.oldmanual" location="${basedir}/game/${game.name}/help"/>
<property name="dir.dist" location="dist"/>
<property name="dir.sources" location="src:src_swing:src_mapstore"/>
<property name="dir.properties" location="src"/>
<property name="dir.libs" location="libs/httpmime-4.1.2.jar;libs/httpcore-4.1.2.jar;lib/jnlp.jar;lib/TranslationTool.jar;lib/SwingME.jar;lib/midletrunner.jar;lib/Grasshopper.jar;lib/LobbyClient.jar;lib/jfreechart-1.0.15.jar;lib/jcommon-1.0.18.jar"/>
<property name="file.src" location="${dir.dist}/src.zip"/>
<!-- if the izpack installer jar is available -->
<property name="izpack.compiler" value="${basedir}/installer/izpack/standalone-compiler.jar"/>
<property name="jsmooth.compiler" value="${basedir}/installer/jsmooth/jsmoothgen-ant.jar"/>
<property name="launch4j.dir" location="${basedir}/installer/launch4j" />
<available file="${izpack.compiler}" property="izpack.available"/>
<available file="${jsmooth.compiler}" property="jsmooth.available"/>
<available file="${launch4j.dir}/launch4j.jar" property="launch4j.available"/>
<condition property="lobby.available">
<and>
<available file="lib/LobbyServer.jar" property="lobby.server.available"/>
<available file="lib/LobbyClient.jar" property="lobby.client.available"/>
</and>
</condition>
<property name="dir.build.lobby.client.classes" location="${dir.build}/lobby/clientclasses"/>
<property name="dir.build.lobby.server.classes" location="${dir.build}/lobby/serverclasses"/>
<property name="dir.lobby.dist.server" location="../Lobby/dist/server"/>
<property name="dir.lobby.dist.client" location="../Lobby/dist/client"/>
<available file="${dir.lobby.dist.server}" property="dir.lobby.dist.server.available"/>
<available file="${dir.lobby.dist.client}" property="dir.lobby.dist.client.available"/>
<property file="build.properties" />
<target name="classes" description="compiles all the classes">
<mkdir dir="${dir.build.classes}"/>
<mkdir dir="${dir.dist}"/>
<!-- compile the classes -->
<javac debug="on" srcdir="${dir.sources}" destdir="${dir.build.classes}" excludes="net/yura/domination/lobby/**"
source="1.5" target="1.5" classpath="${dir.libs}"/>
<!-- copy translation files and other shared files -->
<copy todir="${dir.build.classes}" filtering="true">
<fileset dir="${dir.properties}" includes="**/*.properties"/>
<fileset dir="src_swing" includes="**/*.ini"/>
<fileset dir="src" includes="META-INF/**"/>
</copy>
<!-- copy images -->
<copy todir="${dir.build.classes}">
<fileset dir="game/${game.name}/jar" includes="**/*.*"/>
</copy>
<!-- this is how it used to work, but really this is not a very good idea
<unzip src="lib/TranslationTool.jar" dest="${dir.build.classes}"/>
<unzip src="lib/Grasshopper.jar" dest="${dir.build.classes}"/>
-->
<!-- for the map chooser -->
<copy todir="${dir.build.classes}">
<fileset dir="res_android" includes="**/ms_*.*"/>
<fileset dir="res/drawable-mdpi" includes="**/ms_*.*"/>
</copy>
<!-- for Apple Retina Display -->
<mkdir dir="${dir.build.classes}/drawable-xhdpi"/>
<copy todir="${dir.build.classes}/drawable-xhdpi">
<fileset dir="res/drawable-xhdpi" includes="**/ms_*.*"/>
</copy>
<copy file="res_swing/images/map.png" todir="${dir.build.classes}/net/yura/domination/ui/increment1gui"/>
</target>
<target name="distribution.jar"
description="creates the basic jar file with the classes"
depends="classes">
<jar destfile="${dir.dist}/${game.name}.jar"
basedir="${dir.build.classes}"
manifest="src_swing/META-INF/MANIFEST.MF"/>
</target>
<target name="game"
description="copies all the necessary files for the game to one directory, from which it can be played then"
depends="distribution.jar"><!-- ,manual -->
<mkdir dir="${dir.build.game}"/>
<copy file="ChangeLog.txt" todir="${dir.build.game}"/>
<copy file="todo.txt" todir="${dir.build.game}"/>
<copy file="gpl.txt" todir="${dir.build.game}"/>
<copy file="res_swing/commands.txt" todir="${dir.build.game}" filtering="true"/>
<copy file="res_swing/ReadMe.txt" todir="${dir.build.game}" filtering="true"/>
<copy file="res_swing/game.ini" todir="${dir.build.game}" filtering="true"/>
<!-- <copy todir="${dir.build.game}/manual">
<fileset dir="${dir.build.manual}"/>
</copy>-->
<copy todir="${dir.build.game}/help">
<fileset dir="${dir.oldmanual}"/>
</copy>
<mkdir dir="${dir.build.game}/maps"/>
<copy todir="${dir.build.game}/maps">
<fileset dir="game/${game.name}/maps" includes="**/*.*"/>
</copy>
<mkdir dir="${dir.build.game}/resources"/>
<copy todir="${dir.build.game}/resources">
<fileset dir="${basedir}/res_swing/icons" includes="**/*.*" />
</copy>
<mkdir dir="${dir.build.game}/saves"/>
<copy file="${dir.dist}/${game.name}.jar" todir="${dir.build.game}"/>
<copy todir="${dir.build.game}/lib">
<!-- Desktop libs -->
<fileset dir="lib" includes="SwingME.jar,midletrunner.jar,m3gbasic.jar,TranslationTool.jar,Grasshopper.jar"/>
<!-- libs shared between Android and Desktop -->
<fileset dir="libs" includes="httpmime-4.1.2.jar,httpcore-4.1.2.jar,LobbyCore.jar"/>
</copy>
<copy todir="${dir.build.game}" filtering="true">
<!-- script start files for easy starting -->
<fileset dir="${basedir}/res_swing/scripts" includes="*.sh,*.cmd"/>
<fileset dir="${basedir}/res_swing/html"/>
</copy>
<copy todir="${dir.build.game}">
<!-- Apple OS X Launcher files, these are binary files and can not be filtered -->
<fileset dir="${basedir}/res_swing/scripts" includes="*.app/**,*.exe"/>
<fileset dir="${basedir}/res_swing/scripts" defaultexcludes="no" includes="._*"/>
</copy>
<!-- sadly this is lost when the files are added to the zip file, so is useless
<attrib hidden="true">
<fileset dir="${dir.build.game}" defaultexcludes="no" includes="._*"/>
</attrib>
-->
<!-- remember the installer chmod in installer/izpack/install.xml -->
<chmod dir="${dir.build.game}" includes="*.sh,**/JavaApplicationStub" perm="ugo+x" />
</target>
<target name="game.exe" if="launch4j.available">
<taskdef name="launch4j"
classname="net.sf.launch4j.ant.Launch4jTask"
classpath="${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar" />
<launch4j configFile="${launch4j.dir}/my_flash.xml" />
<launch4j configFile="${launch4j.dir}/my_swing.xml" />
</target>
<target name="distribution.source.zip"
description="creates a zip with all the java files">
<zip destfile="${file.src}">
<fileset dir="${basedir}" includes="**/*.java,res_swing/images/ChatServerLayout.gif" excludes="gen/**,test/**"/>
</zip>
</target>
<target name="distribution.zip"
description="creates the normal zip distribution file which includes the jar"
depends="game,distribution.source.zip">
<copy file="${file.src}" todir="${dir.build.game}"/>
<zip destfile="${dir.dist}/${game.name}_${game.version}.zip">
<zipfileset dir="${dir.build.game}" prefix="${game.name}" excludes="*.sh,**/JavaApplicationStub"/>
<zipfileset dir="${dir.build.game}" prefix="${game.name}" includes="._*" defaultexcludes="no"/>
<zipfileset dir="${dir.build.game}" prefix="${game.name}" includes="*.sh,**/JavaApplicationStub" excludes="mac.sh" filemode="755"/>
</zip>
</target>
<target name="jar"
description="generates distribution packages"
depends="distribution.zip,distribution.izpack,lobby,demo">
</target>
<target name="distribution.izpack"
description="creates the java-based installer (.jar file)"
depends="distribution.izpack.available,distribution.izpack.unavailable"
>
<!-- just a switch for available and unavailable -->
</target>
<target name="distribution.izpack.available"
description="creates the java-based installer (.jar file)"
if="izpack.available"
>
<copy todir="${dir.build}" overwrite="true" filtering="true">
<fileset dir="${basedir}/installer/izpack" includes="install.xml,shortcutSpec.xml,Unix_shortcutSpec.xml"/>
</copy>
<!-- Allows us to use the IzPack Ant task -->
<taskdef name="izpack" classpath="${izpack.compiler}"
classname="com.izforge.izpack.ant.IzPackTask"/>
<!-- generate the installation package -->
<izpack input="${dir.build}/install.xml"
output="${dir.dist}/${game.name}_install_${game.version}.jar"
installerType="standard"
basedir="${dir.build.game}"
izPackDir="${basedir}/installer/izpack/"
/>
<antcall target="distribution.launch4j"/>
</target>
<target name="distribution.izpack.unavailable"
description="Small notice"
unless="izpack.available">
<echo>
The izPack installer is not available on your system.
Get it from http://www.izforge.com/izpack/ if you want
to create the graphical installer.
Copy the standalone installer jar to
${basedir}/installer/izpack/standalone-compiler.jar
############################################################
</echo>
</target>
<target name="distribution.launch4j" depends="distribution.launch4j.available,distribution.launch4j.unavailable"/>
<target name="distribution.launch4j.available"
description="Generates a Windows .exe file from the izPack installer"
if="launch4j.available">
<copy todir="${dir.build}" overwrite="true" filtering="true">
<fileset dir="${launch4j.dir}" includes="my_install.xml"/>
</copy>
<taskdef name="launch4j"
classname="net.sf.launch4j.ant.Launch4jTask"
classpath="${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar" />
<launch4j configFile="${dir.build}/my_install.xml"/>
</target>
<target name="distribution.launch4j.unavailable"
description="Small notice"
unless="launch4j.available">
<echo>
The launch4j installer is not available on your system.
Get it from http://launch4j.sourceforge.net/ if you want
to create the windows exe installer.
extract launch4j-3.0.2-win32.zip to
${basedir}/installer/launch4j/
############################################################
</echo>
</target>
<target name="distribution.jsmooth" depends="distribution.jsmooth.available,distribution.jsmooth.unavailable"/>
<target name="distribution.jsmooth.available"
description="Generates a Windows .exe file from the izPack installer"
if="jsmooth.available">
<!-- load the ant task -->
<taskdef name="jsmoothgen"
classname="net.charabia.jsmoothgen.ant.JSmoothGen"
classpath="${basedir}/installer/jsmooth/jsmoothgen-ant.jar"/>
<copy todir="${dir.build}" file="${basedir}/installer/jsmooth/installer.jsmooth" overwrite="true" filtering="true"/>
<!-- compile the exe file -->
<jsmoothgen project="${dir.build}/installer.jsmooth"
skeletonroot="${basedir}/installer/jsmooth/skeletons"/>
<move file="${dir.build}/${game.name}_install_${game.version}.exe" todir="${dir.dist}"/>
</target>
<target name="distribution.jsmooth.unavailable"
description="Small notice"
unless="jsmooth.available">
<echo>
The jsmooth installer is not available on your system.
Get it from http://jsmooth.sourceforge.net/ if you want
to create the windows exe installer.
Copy the standalone installer jar to
${basedir}/installer/jsmooth/jsmoothgen-ant.jar
############################################################
</echo>
</target>
<xmlcatalog>
<dtd
publicId="-//OASIS//DTD DocBook XML V4.2//EN"
location="${basedir}/newhelp/dtd/docbookx.dtd"/>
</xmlcatalog>
<target name="manual" description="compiles the manual from docbook into html">
<mkdir dir="${dir.build.manual}"/>
<!-- compile the manual with xmlto -->
<exec executable="xmlto" dir="newhelp">
<arg value="-o"/>
<arg value="${dir.build.manual}/"/>
<arg value="xhtml"/>
<arg value="manual.xml"/>
</exec>
<!-- compile the frame files -->
<!-- the following doesn't really work
as xalan wants
a) to connect *always* to the net to get the DTDs
b) has a problem with "Writing frame_index.html: Bad file descriptor Cause: java.io.IOException"
<xslt basedir="newhelp" destdir="${dir.build.manual}"
style="newhelp/xslt/frames.xsl" includes="manual.xml" />
-->
<exec executable="xsltproc" dir="newhelp">
<arg value="-o"/>
<arg value="${dir.build.manual}/"/>
<arg value="xslt/frames.xsl"/>
<arg value="manual.xml"/>
</exec>
</target>
<!-- ###################################################################
############################### LOBBY ##################################
#################################################################### -->
<target name="lobby"
description="creates Game lobby jar"
depends="distribution.lobby.available,distribution.lobby.unavailable"
>
<!-- just a switch for available and unavailable -->
</target>
<target name="distribution.lobby.unavailable"
description="Small notice"
unless="lobby.available">
<echo>
Lobby jars not found!!
----------------------
Please put the LobbyServer.jar and LobbyClient.jar file here
if you want to build the Lobby version
get them by checking out the Lobby Project
svn co https://lobby.svn.sourceforge.net/svnroot/lobby/trunk
############################################################
</echo>
</target>
<target name="distribution.lobby.available"
description="make Lobby game jars"
if="lobby.available">
<antcall target="lobby.client.jars"/>
<antcall target="lobby.server.jars"/>
</target>
<target name="lobby.client.classes">
<!-- compile CLIENT -->
<mkdir dir="${dir.build.lobby.client.classes}"/>
<javac debug="on" srcdir="${dir.sources}" destdir="${dir.build.lobby.client.classes}" includes="net/yura/domination/lobby/client/**,net/yura/domination/engine/ai/**"
source="1.5" target="1.5" classpath="${dir.libs}"/>
<!-- copy translation files and other shared files -->
<copy todir="${dir.build.lobby.client.classes}" filtering="true">
<fileset dir="${dir.properties}" includes="**/*.properties"/>
<fileset dir="src_swing" includes="**/*.ini"/>
<fileset dir="src" includes="META-INF/**"/>
</copy>
<!-- copy images -->
<copy todir="${dir.build.lobby.client.classes}">
<fileset dir="game/${game.name}/jar" includes="**/lobby/client/*.*,**/guishared/*.*,**/flashgui/*.*" excludes="**/flashgui/joingame.jpg,**/flashgui/menu.jpg,**/flashgui/earth.gif"/>
</copy>
</target>
<target name="lobby.server.classes">
<!-- compile SERVER -->
<mkdir dir="${dir.build.lobby.server.classes}"/>
<javac debug="on" srcdir="src:src_lobbyserver:src_mapstore" destdir="${dir.build.lobby.server.classes}" includes="net/yura/domination/lobby/server/**,net/yura/domination/engine/ai/**"
source="1.5" target="1.5" classpath="lib/LobbyServer.jar:lib/SwingME.jar:lib/midletrunner.jar"/>
<!-- copy translation files and other shared files -->
<copy todir="${dir.build.lobby.server.classes}" filtering="true">
<fileset dir="${dir.properties}" includes="**/*.properties"/>
<fileset dir="src_swing" includes="**/*.ini"/>
<fileset dir="src" includes="META-INF/**"/>
</copy>
<unzip src="lib/SwingME.jar" dest="${dir.build.lobby.server.classes}"/>
<unzip src="lib/midletrunner.jar" dest="${dir.build.lobby.server.classes}"/>
</target>
<target name="lobby.client.jars" depends="lobby.client.classes">
<!-- MAKE CLIENT -->
<jar destfile="${dir.dist}/${game.name}Client.jar" basedir="${dir.build.lobby.client.classes}"/>
<antcall target="lobby.client.dist"/>
</target>
<target name="lobby.server.jars" depends="lobby.server.classes">
<!-- MAKE SERVER -->
<jar destfile="${dir.dist}/${game.name}Server.jar" basedir="${dir.build.lobby.server.classes}"/>
<antcall target="lobby.server.dist"/>
</target>
<target name="lobby.client.dist" if="dir.lobby.dist.client.available">
<copy file="${dir.dist}/${game.name}Client.jar" todir="${dir.lobby.dist.client}/${game.name}"/>
<copy todir="${dir.lobby.dist.client}/${game.name}/maps">
<fileset dir="game/${game.name}/maps" includes="**/*.*"/>
</copy>
<copy file="gpl.txt" todir="${dir.lobby.dist.client}/${game.name}"/>
<copy file="ChangeLog.txt" todir="${dir.lobby.dist.client}/${game.name}"/>
<mkdir dir="${dir.lobby.dist.client}/${game.name}/help"/>
<copy file="game/${game.name}/help/game_credits.htm" todir="${dir.lobby.dist.client}/${game.name}/help"/>
</target>
<target name="lobby.server.dist" if="dir.lobby.dist.server.available">
<copy file="${dir.dist}/${game.name}Server.jar" todir="${dir.lobby.dist.server}/${game.name}"/>
<copy todir="${dir.lobby.dist.server}/${game.name}/maps">
<fileset dir="game/${game.name}/maps" includes="*.map,*.cards"/>
</copy>
</target>
<target name="clean" description="Removes all the generated classes and files" >
<delete dir="${dir.build}" includeemptydirs="true"/>
<delete dir="${dir.dist}" includeemptydirs="true"/>
</target>
<target name="setup.android" description="copy maps/help/changelog/gpl into assets" >
<mkdir dir="assets/maps"/>
<copy todir="assets/maps">
<fileset dir="game/${game.name}/maps" includes="**/*.*"/>
</copy>
<mkdir dir="assets/help"/>
<copy todir="assets/help">
<fileset dir="game/${game.name}/help" includes="**/*.*"/>
</copy>
<mkdir dir="assets/services"/>
<copy todir="assets/services">
<fileset dir="src/META-INF/services" includes="**/*.*"/>
</copy>
<copy file="gpl.txt" todir="assets"/>
<copy file="ChangeLog.txt" todir="assets"/>
</target>
<target name="demo" description="create game to run in me4se" depends="setup.android">
<mkdir dir="${dir.build}/swingme"/>
<mkdir dir="dist"/>
<javac debug="on" srcdir="src:src_android:src_mapstore" destdir="${dir.build}/swingme" source="1.5" target="1.5" classpath="${dir.libs}" excludes="net/yura/domination/android/**"/>
<copy todir="${dir.build}/swingme">
<fileset dir="res_android" includes="**/*.*" excludes="**/*.ini"/>
<fileset dir="res/drawable-mdpi" includes="**/*.*"/>
<fileset dir="res" includes="drawable-xhdpi/**/*.*"/>
</copy>
<copy todir="${dir.build}/swingme" filtering="true">
<fileset dir="res_android" includes="**/*.ini"/>
<fileset dir="${dir.properties}" includes="**/*.properties"/>
</copy>
<!-- copy assets into jar -->
<copy todir="${dir.build}/swingme">
<fileset dir="${basedir}" includes="assets/**"/>
</copy>
<jar destfile="dist/${game.name}4ME.jar" basedir="${dir.build}/swingme"/>
</target>
<!-- gen xml -->
<target name="generate" description="generate the persistance manager class">
<path id="class.path">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${dir.dist}">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef classname="net.yura.tools.mobilegen.MobileXmlGen" classpathref="class.path" name="gen-xml"/>
<gen-xml
classNamesFile="${basedir}/game/gen.properties"
outputPackage="net.yura.domination.mapstore.gen"
outputClass="XMLMapAccess"
sourceRoot="${basedir}/src_mapstore"/>
</target>
<target name="run" depends="game" description="override default run action of netbeans">
<java dir="${dir.build.game}" jar="${dir.build.game}/${game.name}.jar" fork="true"/>
</target>
<!-- <import file="${sdk.dir}/tools/ant/build.xml"/> -->
<!--
some changes need to be made to the ${sdk.dir}/tools/ant/build.xml file
1. at the top it says name="", delete this to leave <project default="debug">
2. comment out the line: <fileset dir="${source.absolute.dir}" excludes="**/*.java ${android.package.excludes}" />
-->
<target name="android" description="build and run on android" depends="setup.android">
<property file="local.properties" />
<property file="ant.properties" />
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<loadproperties srcFile="project.properties" />
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
unless="sdk.dir"
/>
<ant antfile="${sdk.dir}/tools/ant/build.xml">
<target name="clean"/>
<target name="debug"/>
<target name="install"/>
</ant>
</target>
</project>