Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

package rename (refactoring ) from command line

Thread view: 
spaceman - 02 Oct 2006 22:24 GMT
Hi,

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.

Thanks
Manish Pandit - 03 Oct 2006 02:59 GMT
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.

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.