javauis/runtimeui_qt/tsrc.s60/build/build.xml
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
     1 <!--
     1 <!--
     2 #
     2 #
     3 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 # All rights reserved.
     4 # All rights reserved.
     5 # This component and the accompanying materials are made available
     5 # This component and the accompanying materials are made available
     6 # under the terms of "Eclipse Public License v1.0"
     6 # under the terms of "Eclipse Public License v1.0"
     7 # which accompanies this distribution, and is available
     7 # which accompanies this distribution, and is available
     8 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 # Initial Contributors:
    10 # Initial Contributors:
    11 # Nokia Corporation - initial contribution.
    11 # Nokia Corporation - initial contribution.
    12 #
    12 #
    13 # Contributors:
    13 # Contributors:
    14 #
    14 #
    15 # Description: 
    15 # Description:
    16 #
    16 #
    17 -->
    17 -->
    18 
    18 
    19 <project name="runtimeuiqttests" default="deploy.ut" basedir=".">
    19 <project name="runtimeuiunittests" basedir="." default="deploy">
    20 
    20 
    21   <import file="../../../../build/utilities.xml"/>
    21   <import file="../../../../build/utilities.xml"/>
       
    22   <property file="../../../../build/unittest.properties"/>
    22 
    23 
    23   <property environment="env"/>
    24   <property name="java.src.paths" value="../javasrc"/>
    24   <property name="java.src.root" location="${env.JAVA_SRC_ROOT}"/>
    25   <property name="java.bin.root" value="${env.JAVA_BIN_ROOT}"/>
    25   <property name="java.bin.root" location="${env.JAVA_BIN_ROOT}"/>
       
    26 
    26 
    27   <property name="src.dir" location="../javasrc"/>
    27 <!-- Appending classpath like this is illegal to normal components. Don't copy
    28   <property name="build.dir" location="../build"/>
    28        paste this!!! -->
    29   <property name="classes.dir" location="${build.dir}/javabuild"/>
    29   <target name="compile">
    30   <property name="installer.jar.filename" value="javainstaller.jar"/>
    30     <omj.javac classpath="${compile.result.root}/javaruntimeui/classes/first"/>
    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>
    31   </target>
    46 
    32 
    47   <target name="clean">
    33   <target name="run" depends="deploy">
    48     <delete dir="${classes.dir}"/>
    34       <echo>Running TestRuntimeUI</echo>
    49     <delete file="${dist}/${runtimeuiqttests.jar.filename}"/>
    35       <exec executable="${java.bin.root}/bin/javaunittester">
    50     <delete file="${dist}/${junit.jar.filename}"/>
    36           <arg line="-mainclass=com.nokia.mj.impl.rt.ui.qt.RuntimeUiQtTests"/>
    51     <delete file="${dist}/${junit.omj.jar.filename}"/>
    37       </exec>
    52   </target>
       
    53 
    38 
    54   <target name="compile.ut" depends="init.my.properties">
    39       <echo>Running TestRuntimeUI Icons</echo>
    55     <property name="jars.dir" location="${jarfiles.collect.root}"/>
    40       <exec executable="${java.bin.root}/bin/javaunittester">
    56     <property name="jars.dir.cdc" location="${jarfiles.collect.cdc.root}"/>
    41           <arg line="-mainclass=com.nokia.mj.impl.rt.ui.RuntimeUiQtIconTest"/>
    57     <mkdir dir="${classes.dir}"/>
    42       </exec>
    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>
    43   </target>
    83 
    44 
    84   <target name="main" depends="clean,run"/>
    45   <target name="main" depends="clean,run"/>
    85 
    46 
    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>
    47 </project>