javauis/tsrc/fute/properties.xml
branchRCL_3
changeset 25 9ac0a0a7da70
equal deleted inserted replaced
24:0fd27995241b 25:9ac0a0a7da70
       
     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="Properties">
       
    20 
       
    21     <property name="top" value="."/>
       
    22     <property name="src" value="src"/>
       
    23     <property name="res" value="res"/>
       
    24     <property name="build" value="build"/>
       
    25     <property name="bin" value="${build}/bin"/>
       
    26     <property name="classes" value="${build}/classes"/>
       
    27     <property name="prever" value="${build}/preverified"/>
       
    28     <property name="lib" value="${top}/lib"/>
       
    29     <property name="ext" value="${lib}/ext"/>
       
    30 
       
    31     <property name="wtk.home" value="C:/WTK"/>
       
    32     <property name="midp_home" value="${wtk.home}"/>
       
    33     <property name="midp_lib" value="${midp_home}/lib/midpapi21.jar"/>
       
    34     <property name="cldc_home" value="${wtk.home}"/>
       
    35     <property name="cldc_lib" value="${cldc_home}/lib/cldcapi11.jar"/>
       
    36     <property name="wtk.cldc.version" value="1.1"/>
       
    37     <property name="wtk.midp.version" value="2.1"/>
       
    38     <property name="java_public_api" value="${wtk.home}/lib/ext/java_public_api.jar"/>
       
    39 
       
    40     <taskdef resource="antenna.properties" classpath="${wtk.home}/lib/ext/antenna-bin-1.0.2.jar"/>
       
    41 
       
    42 
       
    43     <filelist
       
    44         id="ext_lib"
       
    45         dir="${ext}"
       
    46         files=""/>
       
    47 
       
    48     <path id="project.class.path">
       
    49         <pathelement path="${cldc_lib}"/>
       
    50         <pathelement path="${midp_lib}"/>
       
    51         <pathelement path="${java_public_api}"/>
       
    52         <filelist refid="ext_lib"/>
       
    53     </path>	
       
    54     <property name="cp.path" refid="project.class.path"/>
       
    55     <!-- <echo message="project.class.path: '${cp.path}'."/> -->
       
    56 
       
    57 
       
    58     <!-- Combine Tasks -->
       
    59     <target name="all" depends="init,compile,preverify,pack"/>
       
    60 
       
    61     <!-- Remove Build Directories -->
       
    62     <target name="clean">
       
    63         <delete dir="${build}"/>
       
    64     </target>
       
    65 
       
    66     <!-- Create Build Directories -->
       
    67     <target name="init" depends="clean">
       
    68         <!-- Create the build directory structure used by compile and dist -->
       
    69         <mkdir dir="${build}"/>
       
    70         <mkdir dir="${bin}"/>
       
    71         <mkdir dir="${classes}"/>
       
    72         <mkdir dir="${prever}"/>
       
    73         <mkdir dir="${res}"/>
       
    74     </target>
       
    75 
       
    76     <target name="compile" depends="init">
       
    77         <mkdir dir="${classes}"/>
       
    78         <javac
       
    79             destdir="${classes}"
       
    80             srcdir="${src}"
       
    81             target="1.1"
       
    82             source="1.3"
       
    83             debug="true"
       
    84             debuglevel="debug">
       
    85             <classpath refid="project.class.path"/>
       
    86         </javac>
       
    87     </target>
       
    88 
       
    89     <!-- Preverify classes -->
       
    90     <target name="preverify" depends="compile">
       
    91         <mkdir dir="${prever}"/>
       
    92         <wtkpreverify
       
    93             srcdir="${classes}"
       
    94             destdir="${prever}">
       
    95             <classpath refid="project.class.path"/>
       
    96         </wtkpreverify>
       
    97     </target>
       
    98 
       
    99 </project>