javaextensions/midprms_db/tsrc/rmsbenchmark/build/build.xml
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 <!--
       
     2 #
       
     3 # Copyright (c) 2010 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="rmsbenchmark" default="deploy2" basedir=".">
       
    20     <description>
       
    21         RMS Benchmark MIDlet
       
    22     </description>
       
    23 
       
    24   <import file="../../../../../build/utilities.xml"/>
       
    25 
       
    26   <property name="jarfilename" value="rmsbenchmark.jar"/>
       
    27 
       
    28   <property name="java.bin.root" location="${env.JAVA_BIN_ROOT}"/>
       
    29   <echo message = "java.bin.root: ${java.bin.root}"/>
       
    30   
       
    31   <target name="deploy2" depends="init.properties, make.target.dirs, midlet.compile, make.jar">
       
    32     <echo message = "Public interfaces: ${public.api.jar}"/>
       
    33   </target>
       
    34   
       
    35   <!-- Overriding default implementation -->
       
    36   <target name="midlet.compile">
       
    37     <property name="dest.dir" value="${classes.first.dir}"/>
       
    38   
       
    39     <javac 
       
    40       source="${javac.source}" 
       
    41       target="${javac.target}"
       
    42       destdir="${dest.dir}"
       
    43       bootclasspath="${bootclasspath.cldc}:${impl.cldc.jar}">
       
    44       <src path="../javasrc"/>
       
    45     </javac>
       
    46   </target>
       
    47 
       
    48   <target name="make.jar">
       
    49     <jar destfile="${jarfilename}" basedir="${dest.dir}">
       
    50       <manifest>
       
    51         <attribute name="MIDlet-Name" value="RMS Benchmark"/>
       
    52         <attribute name="MIDlet-Vendor" value="Nokia"/>
       
    53         <attribute name="MIDlet-Version" value="1.0"/>
       
    54         <attribute name="MIDlet-1" value="RMS Benchmark, ,RmsBenchmarkMidlet"/>
       
    55         <attribute name="MicroEdition-Profile" value="MIDP-2.0"/>
       
    56         <attribute name="MicroEdition-Configuration" value="CLDC-1.0"/>
       
    57         <attribute name="MIDlet-Permissions" value="javax.microedition.io.Connector.file.read,javax.microedition.io.Connector.file.write"/>
       
    58       </manifest>
       
    59     </jar>
       
    60     <copy file="${jarfilename}" tofile="${vm.extension.directory}/${jarfilename}"/>
       
    61   </target>
       
    62 
       
    63   <target name="help">
       
    64     <echo>"Following targets supported:"</echo>
       
    65     <echo>"  clean"</echo>
       
    66   </target>
       
    67 
       
    68 </project>