|
1 <!-- |
|
2 # |
|
3 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 # All rights reserved. |
|
5 # This component and the accompanying materials are made available |
|
6 # under the terms of "Eclipse Public License v1.0" |
|
7 # which accompanies this distribution, and is available |
|
8 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 # |
|
10 # Initial Contributors: |
|
11 # Nokia Corporation - initial contribution. |
|
12 # |
|
13 # Contributors: |
|
14 # |
|
15 # Description: |
|
16 # |
|
17 --> |
|
18 |
|
19 <project name="rmsmidlet" default="deploy2" basedir="."> |
|
20 <description> |
|
21 RMS Test MIDlet |
|
22 </description> |
|
23 |
|
24 <import file="../../../../build/utilities.xml"/> |
|
25 |
|
26 <property name="junitdir" location="${java.src.root}/tools/junit"/> |
|
27 <property name="junitjarfilename" value="j2meunit1.1.1.jar"/> |
|
28 <property name="junit.omj.jar.filename" value="j2meunitomj.jar"/> |
|
29 |
|
30 <property name="jarfilename" value="rmstests.jar"/> |
|
31 <property name="jarfilename2" value="rmssharedtests.jar"/> |
|
32 <property name="jarfilename3" value="rmsintersuite.jar"/> |
|
33 |
|
34 <property name="java.bin.root" location="${env.JAVA_BIN_ROOT}"/> |
|
35 <echo message = "java.bin.root: ${java.bin.root}"/> |
|
36 |
|
37 <target name="deploy2" depends="init.properties, make.target.dirs, midlet.compile, make.jar"> |
|
38 <echo message = "Public interfaces: ${public.api.jar}"/> |
|
39 </target> |
|
40 |
|
41 <!-- Overriding default implementation --> |
|
42 <target name="midlet.compile"> |
|
43 <property name="dest.dir" value="${classes.first.dir}"/> |
|
44 |
|
45 <javac |
|
46 source="${javac.source}" |
|
47 target="${javac.target}" |
|
48 destdir="${dest.dir}" |
|
49 bootclasspath="${bootclasspath.cldc}:${impl.cldc.jar}:${vm.extension.directory}/openlcdui.jar:${junitdir}/${junitjarfilename}:${junitdir}/${junit.omj.jar.filename}"> |
|
50 <src path="../javasrc"/> |
|
51 </javac> |
|
52 </target> |
|
53 |
|
54 <target name="make.jar"> |
|
55 <jar destfile="${jarfilename}" basedir="${dest.dir}"> |
|
56 <manifest> |
|
57 <attribute name="MIDlet-Name" value="RmsUnitTests"/> |
|
58 <attribute name="MIDlet-Vendor" value="Nokia"/> |
|
59 <attribute name="MIDlet-Version" value="1.0"/> |
|
60 <attribute name="MIDlet-1" value="RmsUnitTests, ,j2meunitomj.MIDletTestRunner"/> |
|
61 <attribute name="MicroEdition-Profile" value="MIDP-2.0"/> |
|
62 <attribute name="MicroEdition-Configuration" value="CLDC-1.0"/> |
|
63 </manifest> |
|
64 </jar> |
|
65 <jar destfile="${jarfilename2}" basedir="${dest.dir}"> |
|
66 <manifest> |
|
67 <attribute name="MIDlet-Name" value="SharedStore"/> |
|
68 <attribute name="MIDlet-Vendor" value="Nokia"/> |
|
69 <attribute name="MIDlet-Version" value="1.0"/> |
|
70 <attribute name="MIDlet-1" value="SharedStore, ,j2meunitomj.MIDletTestRunner"/> |
|
71 <attribute name="MicroEdition-Profile" value="MIDP-2.0"/> |
|
72 <attribute name="MicroEdition-Configuration" value="CLDC-1.0"/> |
|
73 </manifest> |
|
74 </jar> |
|
75 <jar destfile="${jarfilename3}" basedir="${dest.dir}"> |
|
76 <manifest> |
|
77 <attribute name="MIDlet-Name" value="InterSuite"/> |
|
78 <attribute name="MIDlet-Vendor" value="Nokia"/> |
|
79 <attribute name="MIDlet-Version" value="1.0"/> |
|
80 <attribute name="MIDlet-1" value="InterSuite, ,j2meunitomj.MIDletTestRunner"/> |
|
81 <attribute name="MicroEdition-Profile" value="MIDP-2.0"/> |
|
82 <attribute name="MicroEdition-Configuration" value="CLDC-1.0"/> |
|
83 </manifest> |
|
84 </jar> |
|
85 <echo message = "junit source: ${junitdir}/${junitjarfilename}"/> |
|
86 <echo message = "junit target: ${vm.extension.directory}/${junitjarfilename}"/> |
|
87 <copy file="${junitdir}/${junitjarfilename}" tofile="${vm.extension.directory}/${junitjarfilename}"/> |
|
88 <copy file="${junitdir}/${junit.omj.jar.filename}" tofile="${vm.extension.direcory}/${junit.omj.jar.filename}"/> |
|
89 <copy file="${jarfilename}" tofile="${vm.extension.directory}/${jarfilename}"/> |
|
90 <copy file="${jarfilename2}" tofile="${vm.extension.directory}/${jarfilename2}"/> |
|
91 <copy file="${jarfilename3}" tofile="${vm.extension.directory}/${jarfilename3}"/> |
|
92 </target> |
|
93 |
|
94 <target name="clean"> |
|
95 <!-- delete dir="${build}"/ --> |
|
96 <delete dir="javabuild"/> |
|
97 <delete file="${jarfiles.collect.root}/${jarfilename}"/> |
|
98 <delete file="${jarfiles.collect.root}/${jarfilename2}"/> |
|
99 <delete file="${jarfiles.collect.root}/${jarfilename3}"/> |
|
100 <delete file="${jarfiles.collect.root}/${junitjarfilename}"/> |
|
101 <delete file="${jarfiles.collect.root}/${junit.omj.jar.filename}"/> |
|
102 <delete file="${jarfilename}"/> |
|
103 <delete file="${jarfilename2}"/> |
|
104 <delete file="${jarfilename3}"/> |
|
105 <delete file="${vm.extension.directory}/${jarfilename}"/> |
|
106 <delete file="${vm.extension.directory}/${jarfilename2}"/> |
|
107 <delete file="${vm.extension.directory}/${jarfilename3}"/> |
|
108 </target> |
|
109 |
|
110 <target name="help"> |
|
111 <echo>"Following targets supported:"</echo> |
|
112 <echo>" deploy (default)"</echo> |
|
113 <echo>" clean"</echo> |
|
114 </target> |
|
115 |
|
116 </project> |