Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Deleting files before build
Deleting files before build [message #1451840] Fri, 24 October 2014 11:14
Ghaith Hachem is currently offline Ghaith HachemFriend
Messages: 3
Registered: October 2014
Junior Member
I want to delete some files from my build whenever an incremental build happens (On save for example) I don't want to clean my entire project, only one specific file.
I can achieve this using the preBuildStep configuration where i can do a rm -rf *.m where m is the extension of the file i'm deleting. I am however looking for an option to do that without preBuildStep.

The reason is that we have defined our own project type and toolchain as extensions using the "org.eclipse.cdt.managedbuilder.core.buildDefinitions" extension point, and within this project a file gets rebuilt everytime.
This won't happen if the build fails, and an old version of that file will still be available which will confuse the user trying to debug it.

Adding an rm -f option to the prebuild step is a possible solution, however I'm trying to find a way where I don't set anything in the prebuildStep option and leave it empty for the user to set his own prebuild commands.
Previous Topic:Variables view and expressions view
Next Topic:Problems while debugging large project
Goto Forum:
  


Current Time: Tue Apr 23 13:52:22 GMT 2024

Powered by FUDForum. Page generated in 0.03304 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top