File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to add deprecated tag to java files in an entire module Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to add deprecated tag to java files in an entire module" Watch "how to add deprecated tag to java files in an entire module" New topic
Author

how to add deprecated tag to java files in an entire module

Unni Pillai
Ranch Hand

Joined: Aug 22, 2010
Posts: 35
Hi,

I have to add @deprecated tag to about 300 java files . Is there any plugins available to do that at once? or I have to open each one of them and do that :-)

Any ideas appreciated.

Thanks

SCJP,SCWCD,SCEA
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4462
    
    6

Hi Unni, that sounds like something I would look to do with a shell script or batch file. Or a scripting language like Ruby or Groovy. Try asking around in those forums. Good luck.


Junilu - [How to Ask Questions] [How to Answer Questions]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38756
    
  23
But why are you deprecating so many things? Are you saying there are >300 mistakes which you cannot correct?
Unni Pillai
Ranch Hand

Joined: Aug 22, 2010
Posts: 35
Thanks for the quick reply !

@Campbell Ritchie The reason why I need to do is something like, we have some APIs which are going to to be rewritten soon.. but will be used by other developers . so we have to warn them saying that this class will be changed soon.. I know, this is kind of wired but.....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38756
    
  23
Can’t you change the implementation and keep the public interface unchanged?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add deprecated tag to java files in an entire module