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


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

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

From Roedy Green <see_website@mindprod.com.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 10:27 -0800
Organization Canadian Mind Products
Message-ID <lkk4e7ph9e2g63cfibf915fn7qfo644n1c@4ax.com> (permalink)
References <769dffa0-4077-4a3a-ad9a-57c5f5028cd8@l19g2000yqc.googlegroups.com>

Show all headers | View raw


On Fri, 9 Dec 2011 07:46:08 -0800 (PST), www <xsli2@yahoo.com> wrote,
quoted or indirectly quoted someone who said :

>
>I am running Ant on command line, there are many, many WARNING
>messages, cluttering my screen:

those are not ANT messages. They are Javac messages.  See
http://mindprod.com/jgloss/javacexe.html
to learn the option to turn off such warnings.

<!-- C O M P I L E -->
<target name="compile">
<echo message="    :::    bio    :::    compiling Java tree with
target=1.5" />
  <javac source="1.5" target="1.5" srcdir="com/mindprod/bio"
sourcepath="${basedir}" classpath="${basedir}" debug="on"
includeAntRuntime="false">
    <compilerarg value="-Xlint:unchecked" />
    <compilerarg value="-Xlint:fallthrough" />
    <compilerarg value="-Xlint:deprecation" />
  </javac>
</target>


Then just add the option no your compilerargs.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
For me, the appeal of computer programming is that
even though I am quite a klutz,
I can still produce something, in a sense
perfect, because the computer gives me as many
chances as I please to get it right.
 

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