forked from wbarbosa/lwuit-for-series-40
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-midp.xml
75 lines (50 loc) · 2.75 KB
/
build-midp.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
73
74
75
<!--
LWUIT MIDP Jar Builder - Builds the MIDP UI and IO jars.
Run with antenna in the classpath and WTK_HOME set to the
wireless toolkit location being used.
-->
<project name="LWUIT-MIDP-Release" default="create-jars" basedir=".">
<taskdef resource="antenna.properties"/>
<include file="build-wtk-common.xml"/>
<property name="wtk.midp.version" value="2.0" />
<property name="wtk.cldc.version" value="1.1" />
<target name="init">
<property environment="env"/>
<property name="dist.midp.dir" value="MIDP-binaries"/>
<mkdir dir="${dist.midp.dir}"/>
<condition property="build.properties.filename"
value="build-release.properties"
else="build-release.default.properties">
<resourceexists>
<file file="build-release.properties"/>
</resourceexists>
</condition>
<echo message="Loading build properties from ${build.properties.filename}"/>
<property file="${build.properties.filename}"/>
<echo message="WTK Home is : ${wtk.home}"/>
</target>
<target name="dist" depends="init">
<ant antfile="UI/antenna-build.xml" useNativeBasedir="true" target="package" />
<ant antfile="IO/antenna-build.xml" useNativeBasedir="true" target="package" />
<ant antfile="Ports/MIDP/IO_MIDP/antenna-build.xml" useNativeBasedir="true" target="package" />
<ant antfile="Ports/MIDP/UI/antenna-build.xml" useNativeBasedir="true" target="package" />
</target>
<target name="jad" depends="dist">
<wtkjad jadfile="${dist.midp.dir}/LWUIT-MIDP.jad" name="LWUIT-UI" vendor="Nokia" version="1.5" encoding="UTF-8">
</wtkjad>
<wtkjad jadfile="${dist.midp.dir}/LWUIT-MIDP-IO.jad" name="LWUIT-UI" vendor="Nokia" version="1.5" encoding="UTF-8">
</wtkjad>
</target>
<target name="create-jars" depends="dist,jad">
<wtkpackage preverify="true" jarfile="${dist.midp.dir}/LWUIT-MIDP.jar" jadfile="${dist.midp.dir}/LWUIT-MIDP.jad"
bootclasspath="${wtk.active.bootclasspath}">
<zipgroupfileset dir="Ports/MIDP/UI/dist" includes="UI.jar"/>
<zipgroupfileset dir="UI/dist" includes="UI.jar"/>
</wtkpackage>
<wtkpackage preverify="true" jarfile="${dist.midp.dir}/LWUIT-MIDP-IO.jar" jadfile="${dist.midp.dir}/LWUIT-MIDP-IO.jad"
bootclasspath="${wtk.active.bootclasspath}" classpath="${dist.midp.dir}/LWUIT-MIDP.jar">
<zipgroupfileset dir="Ports/MIDP/IO_MIDP/dist" includes="IO.jar"/>
<zipgroupfileset dir="IO/dist" includes="IO.jar"/>
</wtkpackage>
</target>
</project>