Android Question [SOLVED] Is it possible for a CustomBuildAction to stop compilation?

Sandman

Expert
Licensed User
Longtime User
When I'm compiling my app for release, I have a smallish check list that I go through. (Example: Did I really remove all debug toast messages?)

It just struck me as possible to move some of those manual checks into a script that could be used as a custom build action. However, if the script found a problem I would like the compilation to fail, with a message from the script. So I was wondering if a non-zero exit value perhaps halted the compilation?

I mean, it could be as simple as this:

B4X:
msg "%username%" CheckList.bat found problem X
exit 1
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…