OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000173OMNeT++IDE / C++ developmentpublic2010-06-23 11:442010-12-11 14:26
andras 
rhornig 
normalminoralways
resolvedfixed 
4.1 
4.2 
0000173: "Clean Project" function cleans base projects as well
When choosing "Clean Project" from a project's context menu, it also cleans the project(s) that project depends on.

This is especially inconvenient if my project depends on a large project like INET. When I clean my project via context menu->Clean it cleans INET as well, which takes a long time to rebuild.

Clean should only clean the local project (or ask whether to clean base projects as well).
I found two workarounds:

1. Use the Project->Clean... function from the main menu instead. It lets you explicitly select which projects to clean.

2. Alternatively, Project Properties->C/C++ Build->Behavior tab lets you specify whether the project should react at all to the Clean (and/or Build) commands in the IDE (two checkboxes at the bottom). If you turn off Clean for the INET project there, then in general INET will never be cleaned (i.e. cannot be cleaned) using the context->Clean Project and Project->Clean... menu item. Then if you still wish to rebuild INET sometime, then you'll need to manually delete the "out" folder, or go via the "Make Targets" view. (Note: if you turn off both Build and Clean, then apparently the targets in Make Targets cease to work as well.)
No tags attached.
Issue History
2010-06-23 11:44andrasNew Issue
2010-06-23 11:46andrasNote Added: 0000316
2010-06-23 11:55andrasSummary"Clean" function cleans base projects as well => "Clean Project" function cleans base projects as well
2010-06-23 11:55andrasDescription Updated
2010-06-23 11:55andrasAdditional Information Updated
2010-12-11 14:26rhornigNote Added: 0000357
2010-12-11 14:26rhornigStatusnew => resolved
2010-12-11 14:26rhornigFixed in Version => 4.2
2010-12-11 14:26rhornigResolutionopen => fixed
2010-12-11 14:26rhornigAssigned To => rhornig

Notes
(0000316)
andras   
2010-06-23 11:46   
Suggestion: add a "Clean local" menu item to the project's context menu that would only clean the local project and not the base projects.
(0000357)
rhornig   
2010-12-11 14:26   
Added "Clean Selected Project" item to the project's context menu. Shown only if the project has a C++ nature. It is also possible to manually select (ctrl+click) several projects and clean only those.