This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178252 - Packager is invoked twice for classic applet execution
Summary: Packager is invoked twice for classic applet execution
Status: RESOLVED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-07 09:29 UTC by dkuzmin
Modified: 2010-02-16 19:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dkuzmin 2009-12-07 09:29:45 UTC
Create new "classic applet" project and run it. Output:
---------------------------------
init-platform-properties:
Using JavaCard Platform Definition at C:\Users\user\.netbeans\dev\config\Services\Platforms\org-netbeans-api-java-Platform\javacard_default.jcplatform
Java Card Home is C:\jc (Java Card Platform)
init-ri-properties:
init-device-properties:
Platform device property name is jcplatform.javacard_default.devicespath
Computed device folder path is C:\Users\user\.netbeans\dev\config\org-netbeans-modules-javacard\servers\javacard_default
Platform device file path property name is C:\Users\user\.netbeans\dev\config\org-netbeans-modules-javacard\servers\javacard_default\Default Device.jcard
Deploying to device Default Device http port 8019
init-keystore:
Keystore is C:\jc/samples/keystore/a.keystore
Created dir: C:\nbp\ClassicApplet1\build
Created dir: C:\nbp\ClassicApplet1\build\META-INF
Created dir: C:\nbp\ClassicApplet1\build\APPLET-INF\classes
Created dir: C:\nbp\ClassicApplet1\dist
compile:
Compiling 1 source file to C:\nbp\ClassicApplet1\build\APPLET-INF\classes
create-descriptors:
Copying 1 file to C:\nbp\ClassicApplet1\build\APPLET-INF
Copying 2 files to C:\nbp\ClassicApplet1\build\META-INF
create-static-pages:
Copying 1 file to C:\nbp\ClassicApplet1\build
unpack-dependencies:
do-pack:

Packager [v3.0.2]
    Copyright (c) 2009 Sun Microsystems, Inc.
    All rights reserved.
    Use is subject to license terms.

[ INFO: ] Validating Command Line
[ INFO: ] Setting packaging information
[ INFO: ] Package is being created
[ INFO: ] Converter [v3.0.2]
[ INFO: ]     Copyright (c) 2009 Sun Microsystems, Inc.
    All rights reserved.
    Use is subject to license terms.
[ INFO: ] conversion completed with 0 errors and 0 warnings.
[ INFO: ] Printing diagnostics..
[ INFO: ] Packager/create SUCCESS [0 error(s) and 0 warning(s)]
do-sign:
pack:
build:
__reset_for_debug__:
init-platform-properties:
Using JavaCard Platform Definition at C:\Users\user\.netbeans\dev\config\Services\Platforms\org-netbeans-api-java-Platform\javacard_default.jcplatform
Java Card Home is C:\jc (Java Card Platform)
init-ri-properties:
init-device-properties:
Platform device property name is jcplatform.javacard_default.devicespath
Computed device folder path is C:\Users\user\.netbeans\dev\config\org-netbeans-modules-javacard\servers\javacard_default
Platform device file path property name is C:\Users\user\.netbeans\dev\config\org-netbeans-modules-javacard\servers\javacard_default\Default Device.jcard
Deploying to device Default Device http port 8019
init-keystore:
Keystore is C:\jc/samples/keystore/a.keystore
compile:
create-descriptors:
create-static-pages:
unpack-dependencies:
do-pack:

Packager [v3.0.2]
    Copyright (c) 2009 Sun Microsystems, Inc.
    All rights reserved.
    Use is subject to license terms.

[ INFO: ] Validating Command Line
[ INFO: ] Setting packaging information
[ INFO: ] Package is being created
[ INFO: ] Converter [v3.0.2]
[ INFO: ]     Copyright (c) 2009 Sun Microsystems, Inc.
    All rights reserved.
    Use is subject to license terms.
[ INFO: ] conversion completed with 0 errors and 0 warnings.
[ INFO: ] Printing diagnostics..
Packager:
[ WARNING: ] The output file C:\nbp\ClassicApplet1\dist\ClassicApplet1.cap exists. It will be over written.
[ INFO: ] Packager/create SUCCESS [0 error(s) and 1 warning(s)]
do-sign:
pack:
build:
build-dependencies:
load-dependencies:
load-bundle:
...
Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00 
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 06, fa, ec, d6, c1, d9, df, Le: 00, SW1: 90, SW2: 00
run:
BUILD SUCCESSFUL (total time: 4 seconds)
---------------------------------

Build step do-pack is executed twice. Build used is #98.
Comment 1 _ tboudreau 2010-02-16 19:44:00 UTC
Fixed in main/ 25cbe64865df - IDE should not run the "build" target before running the "run" or "run-for-debug" targets - the Ant script will already automatically invoke build.