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.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo