Hi i need to identify deprecated api in java files in a given directory which are belong to java1.3 or 1.4 apis and my target jdk version 1.7 and need to write the message printed on the console to a file.
i know i can use -Xlint option but it will print on the console. How to get the message from console to a string so that i can write it to a file
Could anyone please help me to get the work started.
Thank you very much Darryl Burke that was really helpful..
I can use this command to run it from the command prompt. What if i want to use it in my web application where i will scan all the java files in a directory and compile them and capture all warnings to a file.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop