Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357629 - [external tools] project with just a program builder doesn't show up during clean
Summary: [external tools] project with just a program builder doesn't show up during c...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-14 09:39 EDT by Satyam Kandula CLA
Modified: 2019-11-14 03:36 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 Satyam Kandula CLA 2011-09-14 09:39:40 EDT
A project with just a program builder doesn't show up during clean if the builder is configured to run only after a "Clean".
Reproducible steps:
1. Create a general project
2. Add a "program builder"
3. In Build options tab, only select, After a "Clean"
4. Select Project->Clean
The particular project is not shown. 
If 'During a "Clean"' is selected under Build Options, it is listed.
Comment 1 Michael Rennie CLA 2011-09-14 12:24:26 EDT
This is a bit confusing, but expected. We could probably do better to make sure that it shows up.

More specifically, the reason is that when the build trigger is being asked for build modes it supports, the external tools framework reads the <stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,clean"/> launch config property and reports back to the build framework. In the case of 'After a Clean' only the value of the aformentioned preference is "full", so the build framework ends up thinking the builder does not apply to a clean build, hence it does not show the project in the listing (also because there are no other  registered builders that do support a clean build kind).

See org.eclipse.core.externaltools.internal.model.BuilderCoreUtils for more information on how we configure build triggers.
Comment 2 Satyam Kandula CLA 2011-09-15 10:26:11 EDT
Thanks for the explanation. Actually I thought 'After a "Clean"' meant, truly after a clean, but I understand that it is supposed to be called before a build and after a clean. However, as 'After a "Clean"' builder can be triggered only on Clean, the project should be listed. As I understand this should be a build framework bug rather than Ant/External tools  bug, right?
Comment 3 Lars Vogel CLA 2019-11-14 03:36:18 EST
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.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.