Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10627

Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message?

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message?
Date 2011-12-09 12:19 -0500
Organization The Wasteland
Message-ID <nospam-DA59DE.12193009122011@news.aioe.org> (permalink)
References <769dffa0-4077-4a3a-ad9a-57c5f5028cd8@l19g2000yqc.googlegroups.com>

Show all headers | View raw


In article 
<769dffa0-4077-4a3a-ad9a-57c5f5028cd8@l19g2000yqc.googlegroups.com>,
 www <xsli2@yahoo.com> wrote:

> Hi:
> 
> I am running Ant on command line, there are many, many WARNING
> messages, cluttering my screen:
> 
>     [javac] xx.java:48: warning: [unchecked] unchecked call to
> <K1,V1>build(com.google.common.cache.CacheLoader<? super K1,V1>) as a
> member of the raw type com.google.common.cache.CacheBuilder
>     [javac]         return builder.build(new
> CacheLoader<LocationAndDataTypeIdentifier, IdentifierZipFileHandler>()
>     [javac]                             ^
>     [javac] www.java:48: warning: [unchecked] unchecked conversion
>     [javac] found   : com.google.common.cache.Cache
>     [javac] required: com.google.common.cache.Cache ...
> 
> ...
> 
>     [javac] 1 error
>     [javac] 52 warnings
> 
> BUILD FAILED
> /a/b/c/build.xml:106: Compile failed; see the compiler error output
> for details.
> 
> I hope to make these warning message go away.

I see in the documentation that the build.compiler.warnings command line 
option is deprecated, but the javac nowarn attribute is available.

<http://ant.apache.org/manual/Tasks/javac.html>

Why not suppress the warnings with an annotation? Comment on the 
provably correct ones and mark the others TODO.

> I cannot see the compiler error either. There is no a output file. 
> Should the error be on the screen?

Did you re-direct stderr?

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? www <xsli2@yahoo.com> - 2011-12-09 07:46 -0800
  Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? "John B. Matthews" <nospam@nospam.invalid> - 2011-12-09 12:19 -0500
  Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Roedy Green <see_website@mindprod.com.invalid> - 2011-12-09 10:27 -0800
    Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? www <xsli2@yahoo.com> - 2011-12-09 11:59 -0800
      Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Lew <lewbloch@gmail.com> - 2011-12-09 17:47 -0800
        Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? ilAn <idonot@wantspam.net> - 2011-12-10 03:55 +0200
        Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Roedy Green <see_website@mindprod.com.invalid> - 2011-12-10 06:14 -0800
          Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Gene Wirchenko <genew@ocis.net> - 2011-12-12 12:20 -0800
            Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Arne Vajhøj <arne@vajhoej.dk> - 2011-12-12 19:51 -0500
              Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Gene Wirchenko <genew@ocis.net> - 2011-12-13 09:49 -0800
  Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Lew <lewbloch@gmail.com> - 2011-12-09 17:46 -0800

csiph-web