Bug #13613 2008-04-15 06:35
filofel
Pre-build executing twice.
Running nightly build 4977, I'm seeing pre-build commands executing twice for some projects (I'm not saying that this problem appeared with 4977, BTW, I don't know: I just started to use pre-build and post-build with this build.)
I have a workspace with several projects. Project NVDLinux is a dependency of project NVDCopy. Both have a dummy pre-Build that just echoes.
When building NVDCopy, the dependency, NVDLinux, executes its pre-build command only once.
Ditto if NVDLinux is built separately.
But when building NVDCopy, C::B executes the NVDCopy prebuild commande twice:
-------------- Build: Release in NVDLinux ---------------
Running project pre-build steps
echo "NVDLinux Pre-build steps"
NVDLinux Pre-build steps
Target is up to date.
-------------- Build: Release in NVDCopy ---------------
Running project pre-build steps
echo "NVDCopy Pre-build steps"
NVDCopy Pre-build steps
Running project pre-build steps
echo "NVDCopy Pre-build steps"
NVDCopy Pre-build steps
Target is up to date.
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings
In both projects, the pre-build command is defined at the project level (rather than on one of the targets), and nothing specific is defined for the targets.
Looking at the cbp files, both have a single pre-build command, defined only once:
<ExtraCommands>
<Add before='echo "NVDCopy Pre-build steps"' />
</ExtraCommands>
(and no, I didn't inadvertently copy the same command string in the Post-build field!)
Same problem occurs on some other projects, too.
I did several rounds of testing, varying the number of dependencies, etc., but haven't found so far what triggers the "double execution" problem.
- Category
- Application::WrongBehaviour
- Group
- Status
- Open
- Close date
- Assigned to