<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<br><br>attached is version 2 of the patch.<br>Changes to v1:<br>- change Main.main to Main.mainStart() which returns an int<br>- let Main.main call mainStart() and use System.exit(1) in case of errors<br>- let unit tests call Main.mainNoSystemExit() which doesn't call System.exit().<br>- synchronized -&gt; volatile for access of field programRC <br><br>For version 1 see<br>http://gis.19327.n5.nabble.com/Patch-v1-set-program-return-code-and-improve-logging-tp5805327.html<br><br>If I hear no complains I'll commit it on friday.<br><br>Gerd<br>                                               </div></body>
</html>