-
Notifications
You must be signed in to change notification settings - Fork 3
/
platform.xml
48 lines (41 loc) · 2.24 KB
/
platform.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="PlatformSetup" basedir=".">
<description>Sets up the platform used for building Music Notepad</description>
<!--
NOTE: It is better to build against a known binary kept in source
control than to build against whatever version of the IDE
you happen to be running. This helps promote consistency
between developers on the team, since they will be able to
produce exactly the same build from any machine. In fact,
they will be able to reproduce historical builds by using
the tag/branch (or similar) features of their source control
system.
The technique I use here is inspired and loosely based on the
platform.xml script from Jaroslav Tulach's dvbcentral project.
I produced the platform used here by taking a development
build of NB 6.5 IDE, renaming its directory to nb65platform,
moving several textfiles in the root directory to a 'notices'
subdirectory (to avoid clutter), removing the subdirectories
of the clusters I didn't need (to save space) and then I
zipped the whole directory up. Most of those steps are
optional; you could just use a NetBeans IDE zip file and
change the 'platform.zip' property to reflect its name and
also change the 'platform.dir' property to reflect the name
of the directory it creates when unpacked.
-->
<property name="platform.zip" value="nb65platform.zip" />
<property name="platform.dir" value="nb65platform" />
<target name="unpack-platform" depends="verify-platform" unless="has.platform">
<echo>Unpacking NetBeans 6.5 platform ZIP file... </echo>
<unzip src="${platform.zip}" dest="${basedir}" />
</target>
<target name="verify-platform">
<condition property="has.platform">
<and>
<available file="${platform.dir}/harness"/>
<available file="${platform.dir}/bin/netbeans"/>
<available file="${platform.dir}/etc/netbeans.conf"/>
</and>
</condition>
</target>
</project>