|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
Selection and rebuild selected is different from normal build
I just deleted my entire source directory due to the following unexpected behavior. I have a process files build step that deletes everything from each found bin, obj subdirectory that works fine when the build script is run in its entirety. However when I selected a couple of build steps to do a rebuild selected my entire source tree got deleted because the behavior is now not to evaluate the search but just perform the copy step that deletes everything.
The expected behavior would be that the process files would be evaluated as is the case when the entire script executes. A same thing was observed with conditional build steps it appears that selecting a couple of steps and then performing a rebuild selected circumvents conditionals and other nesting. Please see the attached bld file in order to reproduce. |
#2
|
|||
|
|||
The behavior of rebuild selected to ignore build rules, completion status, etc., is by design. It is an ad hoc method to build the selected steps regardless of these conditions. See http://www.kinook.com/Forum/showthread.php?threadid=927 for more details.
There is no need to use the Process Files step in conjunction with a Copy Files action, since the Copy Files action has recursive processing of include/exclude masks built in. Just copy your settings from the Process Files step to the Copy Files step, and remove the Process Files step. This will be much safer than having a deleting Copy Files action that specifies no include/exclude values. |
|
|