Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[newbie] ant don't show warning messages

 
Valentin Munteanu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have two classes, one of them have a deprecated method, and trying to compile them with ant but no warning messages are showed up to console.
Here is the ant target:


If I compile them from comand line with javac, warning messages are reported. Any idea what I do wrong?
[ February 18, 2003: Message edited by: Valentin Munteanu ]
[ February 18, 2003: Message edited by: Valentin Munteanu ]
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried stuff like ant -verbose and ant -debug?
 
Valentin Munteanu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes I do -verbose and -debug.
 
Neil Laurance
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get a real comparison between ant and manually compiling, compile all your java files in the same javac call. You won't see a deprecation message in this case. For example, assume you have two packages a and b, then:
javac -deprecation a/*.java b/*.java
will not show any deprecation errors.
However:
javac -deprecation a/*.java
javac -deprecation b/*.java
will show deprecation errors when classes in package b uses deprecated methods in package a.
The ant way to see deprecation messages is something like:

The build_b target will be able to see deprecations in the classes already compiled in build_a.
 
Valentin Munteanu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic