Deleting files before build [message #1451840] |
Fri, 24 October 2014 11:14 |
Ghaith Hachem 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03304 seconds