-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
130 lines (114 loc) · 3.81 KB
/
build.xml
File metadata and controls
130 lines (114 loc) · 3.81 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
<project name="magellan2-extensions-plugin" default="distribute">
<description>
This is the ant script for creating all plugins
for Magellan2. You need to setup some paths if you
want to use this script to compile a Install-JAR file.
</description>
<property name="VERSION.MAJOR" value="1" />
<property name="VERSION.MINOR" value="1" />
<property name="VERSION.SUB" value="0" />
<property name="VERSION.POINTED" value="${VERSION.MAJOR}.${VERSION.MINOR}.${VERSION.SUB}" />
<property name="dist" location="${basedir}/release" />
<!-- *************************************************************** -->
<!-- * * -->
<!-- *************************************************************** -->
<target name="print_version">
<copy file="${basedir}/.github/VERSION.template" tofile="${basedir}/VERSION" overwrite="yes">
<filterset>
<filter token="VERSION" value="${VERSION.POINTED}" />
</filterset>
</copy>
<echo message="${VERSION.POINTED}" />
</target>
<!-- *************************************************************** -->
<!-- * * -->
<!-- *************************************************************** -->
<target name="check_magellan_dir">
<condition property="magellan.create">
<not>
<available file="magellan2" type="dir" />
</not>
</condition>
</target>
<target name="checkout" if="magellan.create">
<echo message="Checking out Magellan from git" />
<exec executable="git" dir="${basedir}">
<arg line="clone https://github.com/magellan2/magellan2.git" />
</exec>
</target>
<target name="build_plugins">
<echo message="Building all plugins" />
<mkdir dir="${dist}" />
<ant antfile="LightHouseIcons/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="LightHouseIcons">
<include name="*.jar" />
</fileset>
</copy>
<ant antfile="MapCleaner/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="MapCleaner">
<include name="*.jar" />
</fileset>
</copy>
<ant antfile="MapIcons/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="MapIcons">
<include name="*.jar" />
</fileset>
</copy>
<ant antfile="MemoryWatch/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="MemoryWatch">
<include name="*.jar" />
</fileset>
</copy>
<ant antfile="ShipLoader/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="ShipLoader">
<include name="*.jar" />
</fileset>
</copy>
<ant antfile="statistics/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="statistics">
<include name="*.jar" />
</fileset>
</copy>
<ant antfile="Teacher/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="Teacher">
<include name="*.jar" />
</fileset>
</copy>
<ant antfile="allianceplugin/build.installer.xml"
target="create-installer"
useNativeBasedir="true" />
<copy todir="${dist}">
<fileset dir="allianceplugin">
<include name="*.jar" />
</fileset>
</copy>
</target>
<target name="delete_magellan_dir" if="magellan.create">
<echo message="Removing magellan2" />
<delete dir="magellan2" failonerror="false" />
</target>
<target name="distribute"
depends="check_magellan_dir, checkout, build_plugins, delete_magellan_dir">
</target>
</project>