Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: zyng Newsgroups: comp.lang.java.programmer Subject: How to turn off those warning messages during ant build? Date: Wed, 4 Apr 2012 06:29:12 -0700 (PDT) Organization: http://groups.google.com Lines: 35 Message-ID: <32649009.2052.1333546152596.JavaMail.geo-discussion-forums@vbsf4> NNTP-Posting-Host: 205.156.36.56 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1333546614 24974 127.0.0.1 (4 Apr 2012 13:36:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 4 Apr 2012 13:36:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=205.156.36.56; posting-account=oo44OQoAAABMDvaRlaO3SeQ5MVbxqLdH User-Agent: G2/1.0 X-Received-Bytes: 2448 Xref: csiph.com comp.lang.java.programmer:13382 Hi: When I run ant, a lot of warnings are printed out on the screen. It is very= daunting. It makes new people to feel, as first response, this is broken. = But actually, the build is successful. I pasted a few warning messages belo= w. In our real code, there are hundreds of them. [javac] /abc/efg/MyTools.java:125: warning: [unchecked] unchecked call = to add(E) as a member of the raw type java.util.List [javac] recursiveDirectoriesToBuild.add(workingDir); [javac] ^ [javac] /abc/efg/MyTools.java:212: warning: [unchecked] unchecked call = to Vector(java.util.Collection) as a member of the raw type ja= va.util.Vector [javac] return new Vector(v2); .... I know one solution, the basic solution, is to going to the code and use Ja= va Annotation feature to add "Ignore Warning etc" at those places. But ther= e are so many places and the code were written by different people. We don'= t want to modify the code! I am wondering if ant has a feature to turn off = the warning messages.=20 This is my ant script to build: To be honest, I do not know the feature "-Xlint" etc. Thank you very much.