javaextensions/wma/mms/tsrc/exhaustivetests/build.xml
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     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="exhaustivetests" 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   
       
    28   <property name="src.dir" location="./javasrc;../moduletestframework/javasrc"/>
       
    29   <property name="build.dir" location="."/>
       
    30   <property name="classes.dir" location="${build.dir}/javabuild"/>
       
    31   <property name="installer.jar.filename" value="javainstaller.jar"/>
       
    32   <property name="exhaustivetests.jar.filename" value="OmjMMSExhaustiveTests.jar"/>
       
    33   <property name="utils.jar.filename" value="javacommonutils.jar"/>
       
    34   <property name="logger.jar.filename" value="logger.jar"/>
       
    35   <property name="junit.jar.dir" location="${java.src.root}/tools/junit"/>
       
    36   <property name="junit.jar.filename" value="j2meunit1.1.1.jar"/>
       
    37   <property name="junit.omj.jar.filename" value="j2meunitomj.jar"/>
       
    38 
       
    39   <property name="bootclasspath.cdc" location="${java.src.root}/javaruntime/jvm/ibm/j9_23/ibmdelivery/resource/lib/jclCdc11/classes.zip"/>
       
    40 
       
    41   <property name="javac.source" value="1.3"/>
       
    42   <property name="javac.target" value="1.3"/>
       
    43 
       
    44   <target name="init.my.properties" depends="init.properties">
       
    45     <property name="dist" location="${vm.extension.directory}"/>
       
    46   </target>
       
    47   <target name="clean">
       
    48     <delete dir="${classes.dir}"/>
       
    49     <delete file="${dist}/${exhaustivetests.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.properties">
       
    55 
       
    56    
       
    57 
       
    58     <property name="jars.dir" location="${jarfiles.collect.root}"/>
       
    59     <property name="jars.dir.cdc" location="${jarfiles.collect.cdc.root}"/>
       
    60     <mkdir dir="${classes.dir}"/>
       
    61     <javac source="${javac.source}" target="${javac.target}"
       
    62            destdir="${classes.dir}"
       
    63            bootclasspath="${bootclasspath.cdc}">
       
    64            <classpath>
       
    65                <pathelement
       
    66                  location="${jars.dir.cdc}/${installer.jar.filename}"/>
       
    67                <pathelement location="${impl.cldc.jar}"/>
       
    68                <pathelement location="${impl.cdc.jar}"/>
       
    69                <pathelement location="${public.api.jar}"/>
       
    70                <pathelement location="${platform.api.jar}"/>
       
    71                <pathelement location="${junit.jar.dir}/${junit.jar.filename}"/>
       
    72                <pathelement location="${junit.jar.dir}/${junit.omj.jar.filename}"/>
       
    73            </classpath>
       
    74       <src path="${src.dir}"/>
       
    75     </javac>
       
    76     <ant antfile="${java.src.root}\tools\junit\JsrTestRunner\build\build.xml">
       
    77    </ant>
       
    78   </target>
       
    79 
       
    80 
       
    81   <target name="deploy.ut" depends="compile.ut,init.my.properties">
       
    82       <mkdir dir="${dist}"/>
       
    83       <jar destfile="${dist}/${exhaustivetests.jar.filename}" basedir="${classes.dir}"/>
       
    84       <copy file="${junit.jar.dir}/${junit.jar.filename}"
       
    85             tofile="${dist}/${junit.jar.filename}"/>
       
    86       <copy file="${junit.jar.dir}/${junit.omj.jar.filename}"
       
    87             tofile="${dist}/${junit.omj.jar.filename}"/>
       
    88   </target>
       
    89 
       
    90   <target name="main" depends="clean"/>
       
    91 
       
    92  </project>