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 56224

Summary: Compiling single file uses wrong project
Product: projects Reporter: krahe <krahe>
Component: Generic InfrastructureAssignee: Jesse Glick <jglick>
Status: CLOSED INVALID    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description krahe 2005-03-11 02:16:40 UTC
I have the following source/project structure for a library:

MyLib
  Source
    <sourcefiles>
  Projects
    MyLib_debug
    MyLib_release

When I do a Build or Clean & Build on either of the projects, the build proceeds
correctly and I get the results I expect.  However, when I have (only) the
MyLib_debug project open, and I compile a single file, the compile process uses
the MyLib_release project, its settings and its build directory to do the
compile.  There is no explicit referencing of the projects to each other, and I
can't imagine how one could even be aware of the existence of the other.  I have
tried blowing away any NB cache information I can find, but the
cross-pollination still occurs.
Comment 1 Jesse Glick 2005-03-11 23:33:29 UTC
Two projects may never, under any circumstances, share the same set of source
files. (NetBeans 4.1 and later will do a better job of warning you about this.)
To have multiple named build configurations, for now you must set this up in Ant
(though GUI support is under consideration for a future release).
Comment 2 Marian Mirilovic 2005-07-12 10:08:34 UTC
closed