org.acm.seguin.tools.builder
Class Repackage

java.lang.Object
  extended by org.acm.seguin.tools.builder.Repackage

public class Repackage
extends java.lang.Object

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

Author:
Chris Seguin

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

Repackage

public Repackage()
Method Detail

init

public boolean init(java.lang.String[] args)
Initialize the variables with command line arguments

Parameters:
args - the command line arguments
Returns:
true if we should continue processing

run

public void run(java.lang.String[] args)
         throws RefactoringException
Actual work of the main program occurs here

Parameters:
args - the command line arguments
Throws:
RefactoringException - Description of Exception

printHelpMessage

protected void printHelpMessage()
Print the help message


main

public static void main(java.lang.String[] args)
Main program

Parameters:
args - the command line arguments