au.gov.tas.dpiwe.mr.tool
Class CodeUnstripper

java.lang.Object
  extended by 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

Constructor Summary
CodeUnstripper()
           
 
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
 

Constructor Detail

CodeUnstripper

public CodeUnstripper()
Method Detail

main

public static void main(String[] argv)
                 throws Exception
Initiates the CodeUnstripper tool.

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.