Software Pretty Printer JRefactory Printing Elixir Extensions Line Numbering Metrics Stub Generator Dev Utilities Requested Features Release Notes Download Contributors |  | ## Software::JRefactory - Command Line Interface |
#### Command Line The refactoring tool can be run from the command line. Here is the syntax to launch it.
Syntax | Description
--- | ---
    java Refactory <dir>
| The program will search <dir> and all children for .java files. When it finds them, it creates a frame for each package. The frames display UML notation for the classes in the package.
In addition to the main program, you can perform a pair of type level refactorings individually.
Syntax | Description
--- | ---
`java Repackage [-dir <dir>] [-help] [-package <packagename> | -nopackage] (<file.java>)*` | In the directory specified by <dir> it will load all files specified by <file.java> and move them to the package. The package must be fully qualified if the -package flag is used. -nopackage moves the file to the top level.
`java MoveClass [-dir <dir>] [-help] -from <oldClassName> -to <newClassName>` | In the directory specified by <dir> it looks for a file that is named oldClassName.java. Then it changes the name of the type oldClassName to newClassName and propagates the changes through the other types loaded.
| Last Modified: June 6, 2000 |