I just want the errors, and nothing else, to be printed out for now. Thanks :) Have you tried <javac .... nowarn="on"> Note that this does not disable all kinds of warnings. 来源:https://stackoverflow.com/questions/9971015/how-do-you-get-ant-to-not-print-out-javac-warnings 标签 ant warnings javac