javaextensions/location/tsrc/vipertest/bin/buildmidlet.bat
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 @rem
       
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 @rem All rights reserved.
       
     4 @rem This component and the accompanying materials are made available
       
     5 @rem under the terms of "Eclipse Public License v1.0"
       
     6 @rem which accompanies this distribution, and is available
       
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 @rem
       
     9 @rem Initial Contributors:
       
    10 @rem Nokia Corporation - initial contribution.
       
    11 @rem
       
    12 @rem Contributors:
       
    13 @rem
       
    14 @rem Description: 
       
    15 @rem
       
    16 
       
    17 @if not defined S60ROOT (
       
    18  @echo Error: S60ROOT not set
       
    19  @goto end
       
    20 )
       
    21 
       
    22 @if "%1"=="" goto usage
       
    23 
       
    24 @setlocal
       
    25 @set J2MECLASSPATH=%EPOCROOT%epoc32\release\winscw\udeb\hmidps60v30.jar
       
    26 @set PREVERIFYPATH=%S60ROOT%s60\j2me\vms\cldchi\build\share\bin\win32_i386
       
    27 @set INSTALLFOLDER=%EPOCROOT%epoc32\winscw\c\data\installs
       
    28 
       
    29 @pushd .
       
    30 @cd ..\src
       
    31 %JAVA_1_3_1_HOME%\bin\javac -bootclasspath %J2MECLASSPATH% *.java
       
    32 
       
    33 @if %ERRORLEVEL% NEQ 0 goto error
       
    34 
       
    35 %PREVERIFYPATH%\preverify -classpath %J2MECLASSPATH% -d ..\bin .
       
    36 
       
    37 @if %ERRORLEVEL% NEQ 0 goto error
       
    38 
       
    39 @echo off
       
    40 del *.class
       
    41 popd
       
    42 if EXIST "%1.png" set PNGFILE="%1.png"
       
    43 jar cmf MANIFEST.MF %1.jar *.class %PNGFILE%
       
    44 
       
    45 UpdateJarSize.pl %1.jar %1.jad > %INSTALLFOLDER%\%1.jad
       
    46 move %1.jar %INSTALLFOLDER%
       
    47 del *.class
       
    48 goto end
       
    49 
       
    50 :usage
       
    51 @echo Usage: buildmidlet midletname
       
    52 @goto end
       
    53 
       
    54 :error
       
    55 @popd
       
    56 
       
    57 :end
       
    58 @echo on