package rename (refactoring ) from command line

Discussion in 'Java' started by spaceman, Oct 2, 2006.

  1. spaceman

    spaceman Guest

    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
    spaceman, Oct 2, 2006
    #1
    1. Advertising

  2. 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
    Manish Pandit, Oct 3, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lucas Cowald
    Replies:
    4
    Views:
    1,052
    Tohid
    Oct 23, 2003
  2. Bernd Oninger
    Replies:
    1
    Views:
    789
    Martin Honnen
    Jul 7, 2004
  3. ennio

    Class rename refactoring

    ennio, Sep 7, 2006, in forum: Java
    Replies:
    0
    Views:
    319
    ennio
    Sep 7, 2006
  4. Jason
    Replies:
    1
    Views:
    908
    Benno Baumgartner
    Oct 11, 2006
  5. haomiao
    Replies:
    2
    Views:
    107
    haomiao
    Jul 25, 2007
Loading...

Share This Page