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 ]
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.