javaextensions/location/tsrc/junit/build.xml
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     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="LocationTests" default="deploy.ut" basedir=".">
       
    20   
       
    21 
       
    22   <property environment="env"/>
       
    23   <property name="java.src.root" location="${env.JAVA_SRC_ROOT}"/>
       
    24   <property name="java.bin.root" location="${env.JAVA_BIN_ROOT}"/>
       
    25 
       
    26   <import file="../../../../../build/utilities.xml"/>
       
    27 
       
    28   <property name="src.dir" location="./src"/>
       
    29   <property name="build.dir" location="."/>
       
    30   <property name="classes.dir" location="${build.dir}/javabuild"/>
       
    31   <property name="jar_dir" value="${classes.dir}"/>
       
    32   <property name="installer.jar.filename" value="javainstaller.jar"/>
       
    33   <property name="locationTests.jar.filename" value="LocationTests.jar"/>
       
    34   <property name="utils.jar.filename" value="javacommonutils.jar"/>
       
    35   <property name="logger.jar.filename" value="logger.jar"/>
       
    36   <property name="junit.jar.dir" location="${java.src.root}/tools/junit"/>
       
    37   <property name="junit.jar.filename" value="j2meunit1.1.1.jar"/>
       
    38   <property name="junit.omj.jar.filename" value="j2meunitomj.jar"/>
       
    39 
       
    40   <property name="bootclasspath.cdc" location="${java.src.root}/javaruntime/jvm/ibm/j9_23/ibmdelivery/resource/lib/jclCdc11/classes.zip"/>
       
    41 
       
    42   <property name="javac.source" value="1.3"/>
       
    43   <property name="javac.target" value="1.3"/>
       
    44 
       
    45  <target name="init.component.properties">
       
    46       <property name="dist"
       
    47                value="${vm.extension.directory}"/>
       
    48       <echo message="dist = ${dist}"/>  
       
    49       <echo message="java.src.paths = ${java.src.paths}"/>
       
    50   </target>
       
    51 
       
    52 <!--property name="dist" location="${java.bin.root}/jsr/classes"/-->
       
    53 
       
    54   <target name="clean">
       
    55     <delete dir="${classes.dir}"/>
       
    56     <delete file="${dist}/${locationTests.jar.filename}"/>
       
    57     <delete file="${dist}/${junit.jar.filename}"/>
       
    58     <delete file="${dist}/${junit.omj.jar.filename}"/>
       
    59   </target>
       
    60 
       
    61   <target name="compile.ut" depends="init.properties">
       
    62 
       
    63     <property name="jars.dir" location="${jarfiles.collect.root}"/>
       
    64     <property name="jars.dir.cdc" location="${jarfiles.collect.cdc.root}"/>
       
    65     <mkdir dir="${classes.dir}"/>
       
    66     <javac source="${javac.source}" target="${javac.target}"
       
    67            destdir="${classes.dir}"
       
    68            bootclasspath="${bootclasspath.cdc}">
       
    69            <classpath>
       
    70                <pathelement
       
    71                  location="${jars.dir.cdc}/${installer.jar.filename}"/>
       
    72                <pathelement location="${impl.cldc.jar}"/>
       
    73                <pathelement location="${impl.cdc.jar}"/>
       
    74                <pathelement location="${public.api.jar}"/>
       
    75                <pathelement location="${platform.api.jar}"/>
       
    76                <pathelement location="${junit.jar.dir}/${junit.jar.filename}"/>
       
    77                <pathelement location="${junit.jar.dir}/${junit.omj.jar.filename}"/>
       
    78            </classpath>
       
    79       <src path="${src.dir}"/>
       
    80     </javac>
       
    81     <ant antfile="${java.src.root}/tools/junit/JsrTestRunner/build/build.xml">
       
    82 
       
    83     </ant>
       
    84   </target>
       
    85 
       
    86   <target name="deploy.ut" depends="compile.ut">
       
    87       <mkdir dir="${dist}"/>
       
    88       <jar destfile="${dist}/${locationTests.jar.filename}" basedir="${classes.dir}"/>
       
    89       <copy file="${junit.jar.dir}/${junit.jar.filename}"
       
    90             tofile="${dist}/${junit.jar.filename}"/>
       
    91       <copy file="${junit.jar.dir}/${junit.omj.jar.filename}"
       
    92             tofile="${dist}/${junit.omj.jar.filename}"/>
       
    93   </target>
       
    94 
       
    95   <target name="main" depends="clean"/>
       
    96 
       
    97  </project>