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 198935 - Java Card project window doesn't show source files within a package
Summary: Java Card project window doesn't show source files within a package
Status: RESOLVED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 21:43 UTC by kari.okamoto
Modified: 2011-09-01 12:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the issue (144.17 KB, image/jpeg)
2011-05-26 21:43 UTC, kari.okamoto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kari.okamoto 2011-05-26 21:43:45 UTC
Created attachment 108541 [details]
Screenshot of the issue

When viewing the contents of a Java Card project within the Projects Window, the Java source files included in the project are not listed under their corresponding package. 

In the "Projects" window for a Java Card project: 
1. Expand the contents of the project
2. Expand the contents of "Source Packages"
3. Try to expand the contents of the specific package listed there.  The problem lies here: The source files are not listed within the package they are in.  

In order to see the classes included in a package, the "Files" window must be used instead.

The attachment shows a screenshot of the problem.  The source file, "ClassecApplet5.java" is seen in the Files window: ClassicApplet5 -> src -> classicapplet5 -> ClassicApplet5.java. However, it is not seen in the Projects window as it should be under: ClassicApplet5 -> Source Packages -> classicapplet5

This problem occurs anytime a Java Card project is open.

Product Version: NetBeans IDE 7.0 (Build 201104080000) (I have the latest updates from May 26th, 2011.)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

This issue is not seen in NetBeans 6.9.1.
Comment 1 Anton Chechel 2011-09-01 12:54:32 UTC
fixed
http://hg.netbeans.org/jet-main/rev/449d5849cb0b

Please beware what fix is applied only for creating new java card project. For existing projects you should edit your projectdir/nbproject/project.properties:

1. change "includes=**/*" to "includes="
2. add "build.classes.excludes=**/*.java"

so properties file should look like:
====
active.device=Default Device
applet.descriptor=APPLET-INF/applet.xml
applet.inf.dir=APPLET-INF
build.applet.inf.dir=${build.dir}/APPLET-INF
build.classes.dir=${build.dir}/APPLET-INF/classes
build.classes.excludes=**/*.java
build.dir=build
build.meta.inf.dir=${build.dir}/META-INF
class.path=
compile.on.save=false;
display.name=ClassicApplet3
dist.bundle=${dist.dir}/${dist.bundle.name}
dist.bundle.name=${display.name}.cap
dist.bundle.sig=${dist.dir}/${dist.bundle.sig.name}
dist.bundle.sig.name=${display.name}.signature
dist.dir=dist
dist.jar=${basedir}/${dist.dir}/${dist.bundle.name}
excludes=
includes=**/*
javac.args=
javac.debug=true
javac.deprecation=true
javac.source=1.6
javac.target=1.6
meta.inf.dir=META-INF
package.aid=//aid/8B00D40A08/02
platform.active=javacard_default
proxy.generation.dir=${dist.dir}/generated_proxies_src
run.apdutool=true
run.script=${scripts.dir}/classicapplet3.scr
runtime.descriptor=META-INF/MANIFEST.MF
scripts.dir=scripts
sign.alias=ri
sign.bundle=true
sign.keystore=${javacard.home}/samples/keystore/a.keystore
source.encoding=UTF-8
src.dir=src
====