|
1 <!-- |
|
2 # |
|
3 # Copyright (c) 2008-2009 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="commonsystemproptestsmidlet" default="deploy2" basedir="."> |
|
20 <description> |
|
21 Common system property 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="commonsystemproptests.jar"/> |
|
31 <property name="java.bin.root" location="${env.JAVA_BIN_ROOT}"/> |
|
32 <echo message = "java.bin.root: ${java.bin.root}"/> |
|
33 |
|
34 <target name="deploy2" depends="init.properties, make.target.dirs, midlet.compile, make.jar"> |
|
35 <echo message = "Public interfaces: ${public.api.jar}"/> |
|
36 </target> |
|
37 |
|
38 <!-- Overriding default implementation --> |
|
39 <target name="midlet.compile"> |
|
40 <property name="dest.dir" value="${classes.first.dir}"/> |
|
41 |
|
42 <javac |
|
43 source="${javac.source}" |
|
44 target="${javac.target}" |
|
45 destdir="${dest.dir}" |
|
46 bootclasspath="${bootclasspath.cldc}:${impl.cldc.jar}:${vm.extension.directory}/openlcdui.jar:${junitdir}/${junitjarfilename}:${junitdir}/${junit.omj.jar.filename}"> |
|
47 <src path="../javasrc"/> |
|
48 </javac> |
|
49 </target> |
|
50 |
|
51 <target name="make.jar"> |
|
52 <jar destfile="${jarfilename}" basedir="${dest.dir}"> |
|
53 <manifest> |
|
54 <attribute name="MIDlet-Name" value="CommonSysPropertyMidlet"/> |
|
55 <attribute name="MIDlet-Vendor" value="Nokia"/> |
|
56 <attribute name="MIDlet-Version" value="1.1"/> |
|
57 <attribute name="MIDlet-1" value="MIDletTestRunner, ,j2meunitomj.MIDletTestRunner"/> |
|
58 <attribute name="MicroEdition-Profile" value="MIDP-2.0"/> |
|
59 <attribute name="MicroEdition-Configuration" value="CLDC-1.0"/> |
|
60 </manifest> |
|
61 </jar> |
|
62 <echo message = "junit source: ${junitdir}/${junitjarfilename}"/> |
|
63 <echo message = "junit target: ${vm.extension.directory}/${junitjarfilename}"/> |
|
64 <copy file="${junitdir}/${junitjarfilename}" tofile="${vm.extension.directory}/${junitjarfilename}"/> |
|
65 <copy file="${junitdir}/${junit.omj.jar.filename}" tofile="${vm.extension.directory}/${junit.omj.jar.filename}"/> |
|
66 <copy file="${jarfilename}" tofile="${vm.extension.directory}/${jarfilename}"/> |
|
67 <!-- Copy JAR to Install dir to help S60 emulator usage --> |
|
68 </target> |
|
69 |
|
70 <target name="clean"> |
|
71 <!-- delete dir="${build}"/ --> |
|
72 <delete dir="javabuild"/> |
|
73 <delete file="${jarfiles.collect.root}/${jarfilename}"/> |
|
74 <delete file="${jarfiles.collect.root}/${junitjarfilename}"/> |
|
75 <delete file="${jarfiles.collect.root}/${junit.omj.jar.filename}"/> |
|
76 <delete file="${vm.extension.directory}/${jarfilename}"/> |
|
77 </target> |
|
78 |
|
79 <target name="help"> |
|
80 <echo>"Following targets supported:"</echo> |
|
81 <echo>" deploy (default)"</echo> |
|
82 <echo>" clean"</echo> |
|
83 </target> |
|
84 |
|
85 </project> |