forked from eshkinkot/midpssh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-blackberry.xml
More file actions
95 lines (80 loc) · 2.86 KB
/
build-blackberry.xml
File metadata and controls
95 lines (80 loc) · 2.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
<?xml version="1.0"?>
<project name="MidpSSH-blackberry" basedir="." default="all">
<target name="all" depends="init,blackberry-uptodate,alx">
<antcall target="build-blackberry"/>
<antcall target="ota"/>
<antcall target="simple-ota"/>
</target>
<target name="init" depends="init-midp1,init-midp2">
<property file="build.properties"/>
<property name="jar.file" value="${filename}.jar"/>
<property name="jad.file" value="${filename}.jad"/>
<property name="ota.jad.file" value="${filename}-ota.jad"/>
<property name="cod.file" value="${bb.codename}.cod"/>
</target>
<target name="init-midp1" if="midp1">
<property file="build-blackberry-midp1.properties" />
</target>
<target name="init-midp2" if="midp2">
<property file="build-blackberry-midp2.properties" />
</target>
<target name="run" depends="all">
<available property="has.bb.simulator" file="${bb.simulator}" />
<antcall target="run-simulator" />
<antcall target="run-simulator2" />
</target>
<target name="run-simulator" if="has.bb.simulator">
<copy todir="${bb.simulator}">
<fileset dir="${dist.dir}">
<include name="${cod.file}"/>
</fileset>
</copy>
<exec executable="${bb.simulator.run}" dir="${bb.simulator}" />
</target>
<target name="run-simulator2" unless="has.bb.simulator">
<echo message="Blackberry simulator not found: ${bb.simulator}" />
</target>
<target name="build-blackberry" unless="build.uptodate" depends="build">
<mkdir dir="${build.dir}/blackberry" />
<exec executable="${bb.home}/bin/rapc.exe">
<arg value="import=${bb.lib.home}/net_rim_api.jar" />
<arg value="codename=${bb.codename}" />
<arg value="-midlet" />
<arg value="jad=${dist.dir}/${jad.file}"/>
<arg value="${dist.dir}/${jar.file}"/>
</exec>
<move todir="${dist.dir}">
<fileset dir=".">
<include name="${cod.file}" />
</fileset>
</move>
<delete>
<fileset dir=".">
<include name="${bb.codename}.cso"/>
<include name="${bb.codename}.debug"/>
<include name="${bb.codename}-*.debug"/>
<include name="${bb.codename}.jar"/>
</fileset>
</delete>
</target>
<target name="blackberry-uptodate">
<uptodate property="build.uptodate" targetfile="${dist.dir}/${cod.file}">
<srcfiles dir="src/j2me" includes="**/*.java"/>
</uptodate>
</target>
<target name="build">
<ant antfile="build-package.xml" />
</target>
<target name="alx">
<copy file="conf/midpssh.alx" tofile="${dist.dir}/${bb.codename}.alx">
<filterset>
<filter token="VERSION" value="${version}" />
<filter token="NAME" value="${bb.name}" />
<filter token="CODNAME" value="${bb.codename}" />
</filterset>
</copy>
</target>
<target name="simple-ota" unless="bb.ota">
<copy file="${dist.dir}/${jad.file}" tofile="${dist.dir}/${ota.jad.file}" />
</target>
</project>