Bug 182502 - [Build] Allow to specify which file extensions to delete during CLEAN
Summary: [Build] Allow to specify which file extensions to delete during CLEAN
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-16 03:14 EDT by Sascha Radike CLA
Modified: 2020-09-04 15:23 EDT (History)
0 users

See Also:


Attachments
Current Builder Settings (100.37 KB, image/gif)
2007-04-20 12:05 EDT, Sascha Radike CLA
no flags Details
Proposed Builder Settings for managed build (97.01 KB, image/gif)
2007-04-20 12:05 EDT, Sascha Radike CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Radike CLA 2007-04-16 03:14:25 EDT
Currently the CDT builder does delete _all_ files of the output folder during cleanup. It is not possible for third-party plugins to copy files to the output folder before the CDT buider because they will be deleted.

It should be possible to specify a list of file extensions to delete:

Clean:
   File Extensions to clean: *.o;*.d;*.${artifactExtension};
   [x] Remove empty folders
Comment 1 Sascha Radike CLA 2007-04-20 12:05:13 EDT
Created attachment 64459 [details]
Current Builder Settings
Comment 2 Sascha Radike CLA 2007-04-20 12:05:55 EDT
Created attachment 64460 [details]
Proposed Builder Settings for managed build
Comment 3 Sascha Radike CLA 2007-04-20 12:11:03 EDT
Proposed changes:
 - Replace the "Workbench Build Behavior" with "Clean settings" on the Builder Settings UI. What's the idea of the "workbench build behavior" for managed build anyway ?

 - adjust cleanProgrammatically(...) in CommonBuilder to only delete those files specified in the UI. Code from JDT clean up can probably be copied and modified.

 - The new settings have to be stored somewhere
Comment 4 Sascha Radike CLA 2007-04-23 02:25:42 EDT
I just noticed the new builder is less aggressive and a full build does not clean the output folder. So this enhancement has less priority.