cnf change: prevent full build although 'Build automatically' is disabled #6391
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This improves the DX in the following scenario:
When you edit any file inside the
cnf
folder like/cnf/build.bnd
and you Save the file before this fix, a FULL build was always triggered (byCnfWatcher.java
), even ifProject / Build Automatically
was disabled. (and such a build can take very long and can become anoying in cases where you need tweak build.bnd)Now a build is only triggered if
Build Automatically
is enabled. This at least gives the developer a knob to disable the build-on-change behavior in cases where you work on the file and want to save it a few times along the way (without waiting for a build everytime)A warning is written the Error Log to make it visible somewhere:
Note: The "Reload Workspace" Button in the Bndtools Explorer is also affected by this change and does not trigger a FULL build if Build Automatically setting is disabled. This behavior is still handy as a "Reload Workspace without build" could still do some useful work like validation e.g. to add Problem markers.
The tooltip of the "Reload workspace" button now mentions the build behavior: