Skip to content

Instantly share code, notes, and snippets.

@mlocher
Created May 22, 2014 09:21
Show Gist options
  • Save mlocher/57e47a6be4b70c184b22 to your computer and use it in GitHub Desktop.
Save mlocher/57e47a6be4b70c184b22 to your computer and use it in GitHub Desktop.
Ensure a second ant task is called, independent of the result of the first
#!/bin/bash
ant All
return_value=$?
# Call sendmail task to ensure sending logs
ant sendmail
echo "Call to ant ALL was ${return_value}"
exit $return_value
@amankhanqa
Copy link

Hi,

I have tried above given commands but its not working at my end. I am observing if ant All get failed then ant sendemail not being execute.

Please look into this and do the needful.

Thanks,
Aman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment