-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
100 lines (79 loc) · 3.86 KB
/
build.xml
File metadata and controls
100 lines (79 loc) · 3.86 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
<?xml version="1.0"?>
<!-- =================================
This ant build.xml file could be used for building MaDKit projects.
Especially, this file is automatically parsed by Eclipse so that it displays
the available targets that follow:
- compile: compile the project into the build directory
- build-executable-jar (default): Creates a runnable jar file of the application, embedding MDK
- build-agent-jar: Creates a lightweight jar file containing only the project, so that it could be loaded by a MDK kernel
- Java-web-start: Creates .jnlp and .gz files for Java Web Start deployment
- zip-project-src: Creates a zip file of the project
- clean: Cleans resources generated by builds
================================= -->
<!-- =================================
Here, you specify a code name for the project.
This name is used to label the generated files
================================= -->
<project name="Murmuration" default="build-executable-jar">
<!-- =================================
REQUIRED:
Specify the directory where the MaDKit jar file is in
e.g.
<property name="turtlekit.lib.dir" value="lib"/> relative path or
<property name="turtlekit.lib.dir" value="/userHome/tk3"/> absolute path
================================= -->
<property name="turtlekit.lib.dir" value="lib" />
<!-- =================================
REQUIRED:
Please, specify the TurtleKit version which should be used.
e.g. ${turtlekit.version}
================================= -->
<property name="turtlekit.version" value="3.0.0.5" />
<!-- =================================
OPTIONAL:
Here, you may set your project properties
================================= -->
<property name="src.dir" value="src" />
<property name="version" value="0.1" />
<property name="author" value="Emmanuel Hermellin, Fabien Michel" />
<property name="description" value="" />
<property name="project.label" value="Murmuration with TK" />
<property name="project.website" value="project website url" />
<!-- =================================
OPTIONAL:
Here, you can specify which default options
will be used for the runnable jar file
Usually used to launch turtles
================================= -->
<property name="turtlekit.args" value="--launcher turtlekit.murmuration.Launcher --startSimu" />
<!-- =================================
OPTIONAL:
A java web start file (.jnlp) could be also generated if possible.
Here, you can specify the url of the web directory in which you will
put the jar.gz and the jnlp files so that
they will directly work without editing the jnlp.
================================= -->
<property name="web.codebase" value="http://www.mysite.org/jws_dir" />
<!-- =================================
REQUIRED if using third party libraries
You can specify which third party jars by uncommenting the
following fileset and modifying it (id's value must not be changed).
This is just an example and you can freely define your own fileset (with the same id).
More info on fileset definition at http://ant.apache.org/manual/Types/fileset.html
<fileset id="third.party.libraries" dir="lib">
<include name="a.library.jar" />
<include name="another.library.jar" />
</fileset>
================================= -->
<!-- =================================
DO NOT EDIT WHAT FOLLOWS:
This enables the main ant targets from the turtlekit jar file.
================================= -->
<property name="madkit.args" value="--configFile turtlekit/kernel/turtlekit.properties ${turtlekit.args} --desktop false" />
<property name="kernel.location" location="${turtlekit.lib.dir}/turtlekit-${turtlekit.version}.jar" />
<import>
<javaresource name="MDK_ANT.xml">
<classpath location="${kernel.location}" />
</javaresource>
</import>
</project>