File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes [newbie] ant don't show warning messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "[newbie] ant don Watch "[newbie] ant don New topic
Author

[newbie] ant don't show warning messages

Valentin Munteanu
Greenhorn

Joined: Feb 06, 2003
Posts: 5
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

Joined: Feb 22, 2002
Posts: 1551
Have you tried stuff like ant -verbose and ant -debug?
Valentin Munteanu
Greenhorn

Joined: Feb 06, 2003
Posts: 5
yes I do -verbose and -debug.
Neil Laurance
Ranch Hand

Joined: Jul 18, 2002
Posts: 183
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

Joined: Feb 06, 2003
Posts: 5
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [newbie] ant don't show warning messages