Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > package rename (refactoring ) from command line

Thread Tools

package rename (refactoring ) from command line

Posts: n/a

Is there a tool that can rename packages which can be run from a
command line?

I'd like to do the refactoring on the fly as part of the build process
- something like what most obfuscators do. However I need to rename
some specific packages before I compile the classes as I cannot modify
the original code.

One of the options is to run eclipse in headless mode and use the
refactoring api. However I'm not too familiar with any of these things,
so would be challenge. Is there an easier way to do this?

Any help would be greatly appreciated.


Reply With Quote
Manish Pandit
Posts: n/a
Not aware of any such tool. Wish some shell scripting using sed and
grep you should be able to do a blind find/replace to your files. You
can invoke that script as a part of ant before the compile target.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Command line option syntax error. Type Command /? for Help chuckcar Computer Support 11 04-21-2009 09:59 PM
Is there any command line editing package? haomiao Ruby 2 07-25-2007 12:39 AM
Run Unix shell command $ parse command line arguments in python Python 4 04-23-2005 04:42 AM
Need simple command for validating xml files at the command line Bernd Oninger XML 1 07-07-2004 06:20 PM
RUN/execute a Command-Line command from an ASP page. Lucas Cowald ASP .Net 4 10-23-2003 11:09 AM