|
#1
|
|||
|
|||
In v8, the default for that property is unchecked. You can copy, paste, and rebuild this step in a project to set the property to true/checked for all steps:
Code:
<step action='Run Script'> <Language>VBScript</Language> <Script><![CDATA[' process all steps in project For i = 0 To vbldStepSubroutine ' iterate over all steps in the collection For Each s In Project.Steps(i) ' set to build failure steps on failure s.Property("buildfailsteps") = True Next Next]]></Script> <name>Set failure option</name> </step> |
#2
|
|||
|
|||
Ok thanks for the script, I am still a little confused. This is just so I can understand the way it stores data.
If the default value for this is to be unchecked, than based off what you said I shouldnt see a value stored in the BLD file, viewing it in a text editor, because this is the default value. What I am seeing is that if its set to the default of uncheck it stores this value in the BLD file and if its checked which is opposited the default the tag is not stored. |
#3
|
|||
|
|||
Legacy code is the short explanation. The long explanation: Because the default value for this property used to be true, that is still the "default" as used to determine whether to store the value in the .bld file. When inserting a new step, the step's buildfailstep property is explicitly set to false (the new "real" default), and this value gets stored in the .bld file since it is not the "default" as described above. If the step is checked, it has the old "default" value which does not get stored in the file.
|
#4
|
|||
|
|||
Ok so this is to support backward compatiablitly, that make sense. Thanks for taking the time to explain it.
|
|
|