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.
In javacard reference sample, image is put under src for extension library. Now, the library bundle doesn't have the dir and there for the file. Please include src directory when building bundle for library.
Anki, any clue here? AFAIK we are only filtering out .java files when we build the bundle - nothing special on our side. Could the packager or something be filtering things out?
I tried to fix it, but something is different in build file. Here is how the "compile" target. <target name="compile" depends="-init"> <javac destdir="${build.classes.dir}" source="${javac.source}" target="${javac.target}" nowarn="${javac.deprecation}" debug="${javac.debug}" optimize="no" bootclasspathref="javacard.classpath" includeAntRuntime="no"> <src path="${src.dir}"/> <classpath/> </javac> <copy todir="${build.classes.dir}"> <fileset dir="${src.dir}" includes="${includes}" excludes="${excludes}"/> </copy> </target> The <copy> task ${includes} ${excludes} is empty. I am hoping that you are planning to get something similar to Java projects where there will be some default excludes (like .svn, *.java) and includes (like *.png, *.properties ...). The problem is in the <copy>. If I add these excludes and includes properties in project.properties, then it works.
Okay, so we just need to make sure the project.properties contains the correct includes/excludes. Could you let me know the exact string values you want for these?
Fixed in main/ 4741381100f1 - project updater fix in main/ 374d70908a34 Notes: 1. The fix will only affect - Newly created projects - 6.7 or earlier projects which are opened in 6.8 (the project.properties will be updated when the project metadata is upgraded) 2. With classic applet projects, the resources are now copied into the build classes dir; however they do not end up in the final .cap file. If this is not as designed, then the problem is in the packager.
Integrated into 'main-golden', will be available in build *200912040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/63fa43da8834 User: tboudreau@netbeans.org Log: #177034 - Default includes & excludes (though non class files appear to still be getting filtered elsewhere)
With NB IDE DEV 200912110200 and latest javacard plugin, I still don't see the image file is included in the bundle file.
Already fixed as described for extended and web projects. For classic projects: - Image files are correctly copied into build/APPLET-INF/classes/* - Packager does not include them in the final .cap file Anki, reassigning to you - I don't know what is the correct behavior here, but it does not appear to be a problem of the build script.
CAP file format for classic applets and libraries doesn't allow to include sources of the package in CAP file structure. This is what JCRE specification says for classic applets distribution format: " Additional, implementation specific meta data information files, MAY be present only in the META-INF and APPLET-INF directories within the JAR file. The card management facility MUST silently ignore the files that it does not recognize. The card management facility MUST silently ignore all other files, outside the META-INF and APPLET-INF directory hierarchies, that are included in the JAR file. " I.e. only specific meta data information files could be added. So I suggest to close this issue as it was resolved for extension libraries, web applications and extended applets.
Closing as suggested. Image files in sources for classic projects are not allowed according to the spec.