简体   繁体   English

如果有错误,请停止构建

[英]ant stop build if there are errors

I have ant building android projects from the command line. 我有蚂蚁从命令行构建android项目。 It won't stop for android specific errors, or maybe java errors too. 它不会因Android特定错误或Java错误而停止。 But this can cause some pretty spectacular crashes that I won't normally see from the IDE 但这可能会导致一些非常壮观的崩溃,而我通常不会在IDE中看到这些崩溃

how can I make ant stop for errors? 如何使蚂蚁因错误而停止?

ant fails only case of compile time errors. ant仅在编译时错误的情况下失败。 ant script invokes javac to compile your source files. ant脚本调用javac来编译您的源文件。 If there are any compile time errors, it fails. 如果有任何编译时错误,它将失败。 ant/javac can't really predict runtime errors. ant/javac不能真正预测运行时错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM