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 243691 - Build dependencies not evaluated correctly, resulting in unnecessary re-builds
Summary: Build dependencies not evaluated correctly, resulting in unnecessary re-builds
Status: REOPENED
Alias: None
Product: javame
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 09:51 UTC by terrenceb
Modified: 2014-04-16 16:50 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 terrenceb 2014-04-09 09:51:08 UTC
For Java ME 8 projects, choosing 'run' appears to always do a complete clean & build regardless of the state of the project, rather than just rebuild the changes and reassemble the jar/jad file. 

For large Java ME projects this results in repeated and unnecessary build overhead and slows down the edit/compile/deploy cycle significantly, as complete rebuilds can take minutes.

It should be possible for the build system to correctly determine the dependencies of the changes and in case of localized changes (e.g. in class scope) the build system should only rebuild the affected artifacts and reassemble the jar/jad. In case of more complex dependencies (e.g. class refactoring, class deletion) it is acceptable to do a clean build, but it should not be the default behavior.
Comment 1 Roman Svitanic 2014-04-11 12:16:28 UTC
fixed in jet-main:
http://hg.netbeans.org/jet-main/rev/8683899b21be

Now when "Run" action is invoked, clean will be performed only in case that project files have been changed. Otherwise the clean step is skipped. Same approach as used in Java FX.

+ marking as defect to include it in the patch1 for NetBeans 8.0.
Comment 2 Quality Engineering 2014-04-12 05:05:49 UTC
Integrated into 'main-silver', will be available in build *201404120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8683899b21be
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #243691: Build dependencies not evaluated correctly, resulting in unnecessary re-builds - fixed
Comment 3 terrenceb 2014-04-15 22:20:53 UTC
I don't think this addresses the original request. The clean step should also be skipped if localized changes have been made which only requires rebuilding the changed files and reassembling the jad/jar.
Reopening the issue.
Comment 4 Roman Svitanic 2014-04-16 09:16:17 UTC
Terrence, then this issue would be addressed in the next patch (probably patch2) for NetBeans 8.0. Now less than two weeks before patch1 release it's too risky to add it to patch1 without proper testing.

Setting target to Dev.
Comment 5 terrenceb 2014-04-16 16:50:03 UTC
Roman: Thanks - that's fine.