Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319899 - Non-Java projects get re-built when changing a compiler setting on the preference page
Summary: Non-Java projects get re-built when changing a compiler setting on the prefer...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: performance
: 230859 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-14 14:50 EDT by Michael Rennie CLA
Modified: 2019-10-20 14:49 EDT (History)
6 users (show)

See Also:


Attachments
project that demos the problem (1.99 KB, application/octet-stream)
2010-07-14 14:50 EDT, Michael Rennie CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2010-07-14 14:50:06 EDT
Created attachment 174330 [details]
project that demos the problem

build: I20100713-0800

If you have projects in your workspace that do not have a Java nature, they will be re-built anyways if you change a workspace compiler option (on the Java > Compiler > Errors/Warnings preference page).

The attached project demonstrates the problem.

Steps

1. import the attached project into your workspace
2. change a Java compiler setting and click yes to perform a full build.

Expected

All my Java project would be re-built

Happens 

all of my Java projects get built (OK) and all of the non-Java projects get built.

to ensure the test project is built, it includes an external tool builder that prints the following to the console:

Buildfile: <workspace_path>/JS/build.xml

default:
        [echo] I was built
BUILD SUCCESSFUL
Total time: 878 milliseconds
Comment 1 Dani Megert CLA 2010-07-15 02:04:59 EDT
Only building the Java projects would be wrong as non-Java projects could depend on the build state including problem markers. Like for Java projects project relations might not be defined via 'Project References'.

Suggest to close as WONTFIX or even INVALID.
Comment 2 Markus Keller CLA 2010-07-15 05:46:43 EDT
In org.eclipse.jdt.internal.ui.util.CoreUtility.BuildJob.run(IProgressMonitor), we currently request a full build of the workspace.

We could change this to behave more similar to the changes in project-specific settings, i.e. fully build all Java projects and then request an incremental build of the workspace.
Comment 3 Dani Megert CLA 2010-12-02 04:21:27 EST
*** Bug 230859 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2019-10-20 14:49:01 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.