We're using Help & Manual 5.3 for our documentation needs. In v5.3 a new command line build tool was introduced, but that tool uses bit different result codes from previous versions.
Specifically if a project emits a warning now Final Builder Help & Manual action interprets that as a failure in the action, and fails the build.
Would it be possible to get support for the new H&M version result codes?
The current version of FB does support the new exit codes, however we do treat them all as errors. This was based on information provided by Alex (the author) :
------------------------------- We have introduced two new exit codes in the command line mode.
0 = no error, no warnings 1 = an error occured, compilation could not be finished 2 = a serious warning occured, compilation might be finished but the result is not ok (this concerns, for instance, dead links, missing images, etc.) 3 = an error occured, compilation could be completed but the resulting help file might not work (missing child projects, failed image conversion, incomplete full-text index, etc.)
Any non-zero exit code can be treated as an error that needs investigation from the user. Zero is fine. --------------------
Rather than change the current behavior (which someone may be relying on) I have added an ExitCode property, which you can check in the AfterAction script event :
if (Action.ExitCode = 2) then ActionResult = True Continue = True end if
This will allow you to change the behavior of the action as needed.
I will post here when a build is available with this change.