|
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="runtimeuiqttests" default="deploy.ut" basedir="."> |
|
20 |
|
21 <import file="../../../../build/utilities.xml"/> |
|
22 |
|
23 <property environment="env"/> |
|
24 <property name="java.src.root" location="${env.JAVA_SRC_ROOT}"/> |
|
25 <property name="java.bin.root" location="${env.JAVA_BIN_ROOT}"/> |
|
26 |
|
27 <property name="src.dir" location="../javasrc"/> |
|
28 <property name="build.dir" location="../build"/> |
|
29 <property name="classes.dir" location="${build.dir}/javabuild"/> |
|
30 <property name="installer.jar.filename" value="javainstaller.jar"/> |
|
31 <property name="runtimeuiqttests.jar.filename" value="runtimeuiqttests.jar"/> |
|
32 <property name="utils.jar.filename" value="javacommonutils.jar"/> |
|
33 <property name="logger.jar.filename" value="logger.jar"/> |
|
34 <property name="junit.jar.dir" location="${java.src.root}/tools/junit"/> |
|
35 <property name="junit.jar.filename" value="j2meunit1.1.1.jar"/> |
|
36 <property name="junit.omj.jar.filename" value="j2meunitomj.jar"/> |
|
37 |
|
38 <property name="bootclasspath.cdc" location="${java.src.root}/javaruntime/jvm/ibm/j9_23/ibmdelivery/resource/lib/jclCdc11/classes.zip"/> |
|
39 |
|
40 <property name="javac.source" value="1.3"/> |
|
41 <property name="javac.target" value="1.3"/> |
|
42 |
|
43 <target name="init.my.properties" depends="init.properties"> |
|
44 <property name="dist" location="${vm.extension.directory}"/> |
|
45 </target> |
|
46 |
|
47 <target name="clean"> |
|
48 <delete dir="${classes.dir}"/> |
|
49 <delete file="${dist}/${runtimeuiqttests.jar.filename}"/> |
|
50 <delete file="${dist}/${junit.jar.filename}"/> |
|
51 <delete file="${dist}/${junit.omj.jar.filename}"/> |
|
52 </target> |
|
53 |
|
54 <target name="compile.ut" depends="init.my.properties"> |
|
55 <property name="jars.dir" location="${jarfiles.collect.root}"/> |
|
56 <property name="jars.dir.cdc" location="${jarfiles.collect.cdc.root}"/> |
|
57 <mkdir dir="${classes.dir}"/> |
|
58 <javac source="${javac.source}" target="${javac.target}" |
|
59 destdir="${classes.dir}" |
|
60 bootclasspath="${bootclasspath.cdc}"> |
|
61 <classpath> |
|
62 <pathelement |
|
63 location="${jars.dir.cdc}/${installer.jar.filename}"/> |
|
64 <pathelement location="${impl.cldc.jar}"/> |
|
65 <pathelement location="${impl.cdc.jar}"/> |
|
66 <pathelement location="${public.api.jar}"/> |
|
67 <pathelement location="${platform.api.jar}"/> |
|
68 <pathelement location="${junit.jar.dir}/${junit.jar.filename}"/> |
|
69 <pathelement location="${junit.jar.dir}/${junit.omj.jar.filename}"/> |
|
70 </classpath> |
|
71 <src path="${src.dir}"/> |
|
72 </javac> |
|
73 </target> |
|
74 |
|
75 <target name="deploy.ut" depends="compile.ut"> |
|
76 <mkdir dir="${dist}"/> |
|
77 <jar destfile="${dist}/${runtimeuiqttests.jar.filename}" basedir="${classes.dir}"/> |
|
78 <copy file="${junit.jar.dir}/${junit.jar.filename}" |
|
79 tofile="${dist}/${junit.jar.filename}"/> |
|
80 <copy file="${junit.jar.dir}/${junit.omj.jar.filename}" |
|
81 tofile="${dist}/${junit.omj.jar.filename}"/> |
|
82 </target> |
|
83 |
|
84 <target name="main" depends="clean,run"/> |
|
85 |
|
86 <target name="run" depends="deploy.ut"> |
|
87 <echo>Running RuntimeUiQtTests</echo> |
|
88 <exec executable="${env.JAVA_BIN_ROOT}/bin/javainstaller"> |
|
89 <arg line="test -mainclass=com.nokia.mj.impl.rt.ui.qt.RuntimeUiQtTests"/> |
|
90 </exec> |
|
91 </target> |
|
92 </project> |