This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
Joined: Feb 06, 2003
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com