forked from MCUpdater/MCUpdater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-client.xml
72 lines (69 loc) · 3.03 KB
/
build-client.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="package" name="Create Runnable Jar for Project MCUpdater">
<property name="MCU-API.location" value="MCU-API"/>
<property name="MCUpdater.location" value="mcu"/>
<property name="MCU-Launcher.location" value="MCU-Launcher"/>
<property environment="ENV"/>
<include file="version.xml"/> <!-- Version data import -->
<property name="ENV.BUILD_NUMBER" value="0"/>
<condition property="BRANCH-TAG" value="-${ENV.GIT_BRANCH}">
<not>
<equals arg1="${ENV.GIT_BRANCH}" arg2="master"/>
</not>
</condition>
<property name="BRANCH-TAG" value=""/>
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="build-API">
<ant antfile="build.xml" dir="${MCU-API.location}" inheritAll="false" target="build-project">
<propertyset>
<propertyref name="build.compiler"/>
</propertyset>
</ant>
</target>
<target name="build-Launcher">
<ant antfile="build.xml" dir="${MCU-Launcher.location}" inheritAll="false" target="build-project">
<propertyset>
<propertyref name="build.compiler"/>
</propertyset>
</ant>
</target>
<target name="build-Client">
<ant antfile="build.xml" dir="${MCUpdater.location}" inheritAll="false" target="build-project">
<propertyset>
<propertyref name="build.compiler"/>
</propertyset>
</ant>
</target>
<target name="package" depends="build-API,build-Launcher,build-Client">
<mkdir dir="dist"/>
<property name="git_branch" value="${ENV.GIT_BRANCH}"/>
<echo message="git_branch = ${git_branch}"/>
<propertyfile file="${MCUpdater.location}/bin/version.properties" comment="MCUpdater automatic build version">
<entry key="major" value="${VER.MAJOR}"/>
<entry key="minor" value="${VER.MINOR}"/>
<entry key="build_version" value="${ENV.BUILD_NUMBER}"/>
<entry key="git_branch" value="${git_branch}"/>
<entry key="git_commit" value="${ENV.GIT_COMMIT}"/>
</propertyfile>
<delete>
<fileset dir="dist" includes="MCUpdater*.*"/>
</delete>
<jar destfile="dist/MCUpdater${BRANCH-TAG}.${VER.MAJOR}.${VER.MINOR}.${ENV.BUILD_NUMBER}.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="org.smbarbour.mcu.Main"/>
<attribute name="Class-Path" value="."/>
<attribute name="SplashScreen-Image" value="mcu-splash.png"/>
</manifest>
<fileset dir="${MCUpdater.location}/bin"/>
<fileset excludes="version.properties" dir="${MCU-API.location}/bin"/>
<fileset dir="${MCU-Launcher.location}/bin"/>
<zipfileset excludes="META-INF/*.SF" src="${MCU-API.location}/commons-codec-1.6.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${MCU-API.location}/commons-io-2.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${MCU-API.location}/jbeat-1.0.jar"/>
<zipfileset src="${MCUpdater.location}/resources/famfamfam_silk_icons_v013.zip"/>
<zipfileset src="${MCUpdater.location}/resources/assets.zip"/>
<zipfileset src="${MCU-API.location}/assets-API.zip"/>
</jar>
</target>
</project>