Adam Johns
Adam Johns

Reputation: 36343

Android - how to know if build failed

I'm writing a script which makes my android build with ant release, but I need to know if the build succeeded or failed to know how to react. Is there a standardized way of knowing if the build failed when building an Android project from command line with ant?

Upvotes: 0

Views: 45

Answers (1)

Ben Weiss
Ben Weiss

Reputation: 17922

The exit code for a failed build in ant is 1. So if the exit code of your ant command equals 1 the build has failed.

Source

Upvotes: 2

Related Questions