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.
Summary: | compile.single on j2seproject should do clean step first | ||
---|---|---|---|
Product: | java | Reporter: | lordpixel <lordpixel> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | CC: | johnjullion |
Priority: | P2 | Keywords: | RELNOTE |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://www.netbeans.org/servlets/ReadMsg?msgId=840739&listName=netcat | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
lordpixel
2004-12-21 17:49:13 UTC
I could have sworn this was already filed, but I have looked up and down and cannot find the original. Anyway, it was suggested before (somewhere?) to make compile.single on a j2seproject do a clean on the file selection (s/\.java/.class/g) before running the compiler, which should be straightforward. The actual Ant code to do it (as a build.xml override) is in fact already known and I posted it somewhere as a tip, but I can't remember where now. Note also that reporter is probably more interested in issue #36033 than the actual reported problem. Hah, found it - on netcat in response to Bryan Boone, who apparently never filed an RFE for it, not sure why not. See URL. The cleaning package before compiling it seems a good idea. Possible release note, in case we do not get a chance to actually fix it for 4.1; easy workaround once you know how, see URL. Note that exact text of overridden Ant target will change a bit (be more complicated) if you use multiple source roots in 4.1. Will need to draft an actual release note item in case this is still open by 4.1 high-resistance mode. Obviously not for 4.1. *** Issue 50282 has been marked as a duplicate of this issue. *** I think this was fixed in 6.0 along with other changes in compile-single, and dependency tracking? Anyway this is not too relevant in 6.5 with Compile on Save. |