java - How to disable ant to output warning info in iterm2? -
i use ant build , deploy java web project in iterm2, , have problem. when compile project, there many full screen warnings can not read errors reported ant. here ant javac task def:
<echo message="begin compile..." />   <javac srcdir="${src.dir}" destdir="${build.dir}"        includeantruntime="false" nowarn="on"        source="1.7" target="1.7" deprecation="true" debug="true"        encoding="utf-8" classpathref="project.classpath">       <compilerarg line="-xlint:unchecked" />   </javac>   <copy todir="${build.dir}">       <fileset dir="${src.dir}">           <include name="**/*.xml" />           <include name="**/*.properties" />           <include name="**/*.sql" />       </fileset>   </copy>   <echo message="end compile..." />  how can tell ant not display warnings , display errors?
to disable many kinds of warnings, replace...
<compilerarg line="-xlint:unchecked" /> ...with...
<compilerarg value="-xlint:none" /> warnings unchecked conversions cannot disabled command line. instead, have manually add @suppresswarnings annotations every place unchecked conversions occurring in java code.