title: ANT returns build success on Java Run Time errors
body: <p>we run a given task using ANT which creates some configuration files and then run a sw for us.</p>
  
  <p>We are experiencing some run time error inside the virtual machine and it seems ANT is not able to catch it: it simply gives me BUILD_SUCCESS.</p>
  
  <p>Is there any way to avoid this?</p>
  
  <p>Thanks in advance.</p>