Make forked tasks fail on error in Ant script

Otherwise ant can display that the build is successful whereas it's not.

(cherry picked from commit a1bc644ebb89558f3dfe748f171baf6704937419)

Change-Id: Ie33ea06f1beb4b36b2f64613308d33bb3e4adb93