This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 6337
    
  16

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: 44590
    
  34
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: 44590
    
  34
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
 
It's not a secret anymore!