javauis/tsrc/fute/eswt/ShellTestMidletSuite/build.xml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 12:49:31 +0300
changeset 26 dc7c549001d5
permissions -rw-r--r--
Revision: v2.1.26 Kit: 2010121

<!--
#
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description: 
#
-->

<project name="ShellTestMidletSuite" default="pack">

    <!-- Get general settings for MIDlet projects. -->
    <import file="../../properties.xml"/>

    <!-- Set properties for this project. -->
    <property name="midlet1.name" value="ShellTestMIDlet_01"/>
    <property name="midlet1.icon.name" value="icon.png"/>
    <property name="midlet1.package.name" value="com.nokia.test.java.eswt.shell.ShellTestMIDlet_01"/>
    <property name="midlet2.name" value="ShellTestMIDlet_02"/>
    <property name="midlet2.icon.name" value="icon.png"/>
    <property name="midlet2.package.name" value="com.nokia.test.java.eswt.shell.ShellTestMIDlet_02"/>
    <property name="midlet3.name" value="ShellTestMIDlet_03"/>
    <property name="midlet3.icon.name" value="icon.png"/>
    <property name="midlet3.package.name" value="com.nokia.test.java.eswt.shell.ShellTestMIDlet_03"/>
    <property name="midlet4.name" value="ShellTestMIDlet_04"/>
    <property name="midlet4.icon.name" value="icon.png"/>
    <property name="midlet4.package.name" value="com.nokia.test.java.eswt.shell.ShellTestMIDlet_04"/>
    <property name="midlet5.name" value="ShellTestMIDlet_05"/>
    <property name="midlet5.icon.name" value="icon.png"/>
    <property name="midlet5.package.name" value="com.nokia.test.java.eswt.shell.ShellTestMIDlet_05"/>
    <property name="midlet6.name" value="ShellTestMIDlet_06"/>
    <property name="midlet6.icon.name" value="icon.png"/>
    <property name="midlet6.package.name" value="com.nokia.test.java.eswt.shell.ShellTestMIDlet_06"/>
    <property name="midlet.permissions" value=""/>
    <property name="package.name" value="ShellTestMidletSuite"/>
    <property name="company.name" value="Nokia"/>
    <property name="midlet.version" value="1.1"/>
    <property name="midlet.description" value=""/>

    <!-- Package Preverifed classes, resources and MANIFEST file -->
    <target name="pack" depends="preverify">
        <wtkjad jadfile="${bin}/${package.name}.jad"
            jarfile="${bin}/${package.name}.jar"
            update="true"
            config="1.1"
            profile="2.1"
            manifest="${bin}/MANIFEST.MF"
            name="${package.name}"
            vendor="${company.name}">
            <attribute name="MIDlet-Permissions" value="${midlet.permissions}"/>
            <attribute name="MicroEdition-Profile" value="MIDP-2.1"/>
            <attribute name="MicroEdition-Configuration" value="CLDC-1.1"/>
            <attribute name="MIDlet-Version" value="${midlet.version}"/>
            <attribute name="MIDlet-Description" value="${midlet.description}"/>
            <midlet name="${midlet1.name}" icon="${midlet1.icon.name}" class="${midlet1.package.name}" />
            <midlet name="${midlet2.name}" icon="${midlet2.icon.name}" class="${midlet2.package.name}" />
            <midlet name="${midlet3.name}" icon="${midlet3.icon.name}" class="${midlet3.package.name}" />
            <midlet name="${midlet4.name}" icon="${midlet4.icon.name}" class="${midlet4.package.name}" />
            <midlet name="${midlet5.name}" icon="${midlet5.icon.name}" class="${midlet5.package.name}" />
            <midlet name="${midlet6.name}" icon="${midlet6.icon.name}" class="${midlet6.package.name}" />
        </wtkjad>

        <wtkpackage
            jarfile="${bin}/${package.name}.jar"
            jadfile="${bin}/${package.name}.jad"
            classpath="${project.class.path}"
            basedir="${prever}"
            autoversion="false">
            <fileset dir="${res}"
                excludes="**/distribution.policy.s60" />
        </wtkpackage>
    </target>

</project>