gov.nasa.pds.report.sawmill
Class SawmillScriptWriter

java.lang.Object
  extended by gov.nasa.pds.report.sawmill.SawmillScriptWriter
All Implemented Interfaces:
SawmillInterface

public class SawmillScriptWriter
extends Object
implements SawmillInterface

Class that creates a shell script at location specified by gov.nasa.pds.report.sawmill.SawmillScriptWriter.output.location in default.properties. The shell script is then run automatically after the Report Service finishes execution. The runCommands() method should only be run once since the script created will be written each time the method is invoked.

Author:
resneck

Field Summary
static String SCRIPT_NAME
           
 
Constructor Summary
SawmillScriptWriter()
           
 
Method Summary
 void runCommands(List<String> commandList)
          Run a List of provided commands in order
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_NAME

public static final String SCRIPT_NAME
See Also:
Constant Field Values
Constructor Detail

SawmillScriptWriter

public SawmillScriptWriter()
Method Detail

runCommands

public void runCommands(List<String> commandList)
                 throws SawmillException
Description copied from interface: SawmillInterface
Run a List of provided commands in order

Specified by:
runCommands in interface SawmillInterface
Parameters:
commandList - The List of commands to run
Throws:
SawmillException - If the provided List is empty or an error occurs


Copyright © 2010–2015 Planetary Data System. All rights reserved.