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 73664

Summary: Have source-libraries besides of binary libraries
Product: javame Reporter: ieising <ieising>
Component: Build SystemAssignee: Petr Suchomel <psuchomel>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description ieising 2006-03-16 15:28:35 UTC
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
Comment 1 Lukas Hasik 2007-01-09 14:12:54 UTC
reassigning
Comment 2 Adam Sotona 2007-05-21 15:07:12 UTC
With a small fix this would be possible by adding the root (folder, zip, jar...)
with the sources as a resource.
Comment 3 Adam Sotona 2007-05-21 15:38:29 UTC
*** Issue 81235 has been marked as a duplicate of this issue. ***