When the actual call to the MAP Service is made and there is any return HTTP Status that is not between 200 and 204 it returns the HTTP Status code as the exit code.
If there are no argument provided at all it returns exit code 1.
If there are other exceptions, and there are a few then no exit code is imposed by the application and as per Java design always returns a status code of 0.
According to the comment in the application for branch (1) above
//convert the HTTP response code into a system exit for build systems I assume that this means that all unhappy execution branches should return a non zero status.
App has three different return call behaviours
1
.According to the comment in the application for branch (1) above
//convert the HTTP response code into a system exit for build systems
I assume that this means that all unhappy execution branches should return a non zero status.