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.
Hi, I would like to be able to have the availability of source libraries. We have many classes that are used in many projects, but based on abilities of the MIDlet that uses one or more of these classes, we want different pieces of code to be active, we use pre-processor blocks for this. Unfortunately, the classes when put in a library project are used in their binary form, thus it doesn't matter which pre-processor blocks we want to use at any other time than when the library is compiled. At the moment we have all sorts of configurations defined to get the various 'most common denominator' JAR-files, and have the pre-processor blocks in the calling code, which makes some files unneceraily large. Now my suggestion is that there is a 'source library project' type and when you define a project to depend on this 'source library project' it won't compile the project but copies the sources to the project that depends on it. The obfuscator , pre-processor and compiler will take care of the rest. Iwan
reassigning
With a small fix this would be possible by adding the root (folder, zip, jar...) with the sources as a resource.
*** Issue 81235 has been marked as a duplicate of this issue. ***