Bug 577187 - Consider the selected Workingset when performing the workspace build
Summary: Consider the selected Workingset when performing the workspace build
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.22   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 09:33 EST by Gayan Perera CLA
Modified: 2021-11-11 12:05 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gayan Perera CLA 2021-11-10 09:33:48 EST
When performing a workspace build, don't build projects which are not part of the workingset unless they appear as dependents on the projects which are in the selected workingset.

This also applies to downstream builds, if the downstream project is not part of the workingset don't build it.
Comment 1 Andrey Loskutov CLA 2021-11-10 09:39:09 EST
(In reply to Gayan Perera from comment #0)
> When performing a workspace build, don't build projects which are not part
> of the workingset unless they appear as dependents on the projects which are
> in the selected workingset.

There are at least three places where working sets can be set: Package Explorer, Project Explorer, and Project -> Build Working Set...

So which one is meant, and what is meant by "performing a workspace build" ?
Comment 2 Gayan Perera CLA 2021-11-10 13:34:19 EST
(In reply to Andrey Loskutov from comment #1)
> 
> There are at least three places where working sets can be set: Package
> Explorer, Project Explorer, and Project -> Build Working Set...
> 
> So which one is meant, and what is meant by "performing a workspace build" ?

I have not checked the platform build action, how it triggers it. But when i open some workspaces, it starts to build projects which are not selected under the workingset of the project explorer.

But i think you have a point about working sets are in the scope of the views such as Project and Package Explorers. So may be trying to implement this feature might not make sense.
Comment 3 Andrey Loskutov CLA 2021-11-11 12:05:39 EST
(In reply to Gayan Perera from comment #2)
> (In reply to Andrey Loskutov from comment #1)
> > 
> > There are at least three places where working sets can be set: Package
> > Explorer, Project Explorer, and Project -> Build Working Set...
> > 
> > So which one is meant, and what is meant by "performing a workspace build" ?
> 
> I have not checked the platform build action, how it triggers it. But when i
> open some workspaces, it starts to build projects which are not selected
> under the workingset of the project explorer.

This is auto-build. It doesn't care about *any* working set because it works on lower level.

Working sets are "UI". Autobuild works on "entire resources tree" and is below "UI" layer.

What you probably want is to *close* projects you don't want to use at the moment.