|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.tools.builder.Repackage
public class Repackage
Main program for repackaging. This object simply stores the main program and interprets the command line arguments for repackaging one or more files. It has two options --package or nopackage. package builds a specified package hierarchy and nopackage removes the package hierarchy and updates the java file(s) accordingly This program uses relative pathname to create a new package. So it may give unexpectd results if run on a file whose package name is not in accordance with its package hierarchy
Constructor Summary | |
---|---|
Repackage()
|
Method Summary | |
---|---|
boolean |
init(java.lang.String[] args)
Initialize the variables with command line arguments |
static void |
main(java.lang.String[] args)
Main program |
protected void |
printHelpMessage()
Print the help message |
void |
run(java.lang.String[] args)
Actual work of the main program occurs here |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Repackage()
Method Detail |
---|
public boolean init(java.lang.String[] args)
args
- the command line arguments
public void run(java.lang.String[] args) throws RefactoringException
args
- the command line arguments
RefactoringException
- Description of Exceptionprotected void printHelpMessage()
public static void main(java.lang.String[] args)
args
- the command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |