au.gov.tas.dpiwe.mr.tool
Class CodeUnstripper
java.lang.Object
au.gov.tas.dpiwe.mr.tool.CodeUnstripper
public class CodeUnstripper
- extends Object
This tool replaces source files which have a counterpart with
the suffix ".unstripped" with that counterpart. This tool's
purpose is to restore the source tree after a CodeStripper
assisted rebuild.
- Since:
- Mr Architecture 2.0
- Version:
- 1.0.0.1
- Author:
- Kade Hansson
- See Also:
CodeStripper
|
Method Summary |
static void |
main(String[] argv)
Initiates the CodeUnstripper tool. |
static boolean |
removeAndMove(String filename)
Replaces a source file with its unstripped counterpart. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeUnstripper
public CodeUnstripper()
main
public static void main(String[] argv)
throws Exception
- Initiates the CodeUnstripper tool.
- The switch "-single" introduces the following parameters as single
filenames. If you don't specify a switch, "-single" is assumed.
- The switch "-multi" introduces the following parameters as directory
names, which are recursively searched for all ".java" source files.
- Parameters:
argv - arguments are filenames, directory names or switches (one of
"-single" or "-multi").
- Throws:
SecurityException - if the configured security policy is too
restrictive.
Exception - if something else goes wrong.
removeAndMove
public static boolean removeAndMove(String filename)
throws SecurityException
- Replaces a source file with its unstripped counterpart.
- Parameters:
filename - the name of the file to be unstripped.
- Returns:
- true if the file was successfully unstripped, false if the file
remains unchanged.
- Throws:
SecurityException - if the configured security policy is too
restrictive.