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 166888 - Make incremental builds work after source files are deleted
Summary: Make incremental builds work after source files are deleted
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 166197
  Show dependency tree
 
Reported: 2009-06-11 00:56 UTC by Jesse Glick
Modified: 2010-04-22 18:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-06-11 00:56:49 UTC
It is undesirable for "ant compile" (or test-compile) to leave behind *.class files corresponding to sources which have
been deleted (or renamed). It is worse if it leaves behind entries in META-INF/generated-layer.xml, as these can lead to
runtime errors.
Comment 1 Jesse Glick 2009-06-11 01:45:19 UTC
Attempting to fix in core-main #ec6cd43f5ba0; hope there will not be side effects.
Comment 2 Quality Engineering 2009-06-12 09:21:48 UTC
Integrated into 'main-golden', will be available in build *200906120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ec6cd43f5ba0
User: Jesse Glick <jglick@netbeans.org>
Log: #166888: turn off incremental builds for a module if it looks like a source file has been deleted.
Comment 3 Jesse Glick 2010-01-19 11:48:22 UTC
contrib #1d7977c9a430 fixes an issue in j2ee.blueprints. This module creates build/gensrc and then compiles it (to build/classes), independently of src. CustomJavac.cleanUpStaleClasses caused problems sometimes:

ant -f contrib/j2ee.blueprints/build.xml clean netbeans
touch contrib/j2ee.blueprints/src/org/netbeans/modules/j2ee/blueprints/BluePrintsComponent.java
ant -f contrib/j2ee.blueprints/build.xml netbeans

=> failure, since Nbcatalog.class looks stale, so build/classes recreated, but then gensrc not found.
Comment 4 Jesse Glick 2010-04-22 18:38:10 UTC
(In reply to comment #3)
> contrib #1d7977c9a430 fixes an issue in j2ee.blueprints

(in conjunction with #8530b93f5c0d)