cz.zcu.fav.kiv.editor.utils
Class RunBatch

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.utils.RunBatch

public class RunBatch
extends java.lang.Object

The RunBatch class launches a batch file defined by user.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
static java.lang.String RUN_BAT
          The name of the auxiliary batch file
 
Constructor Summary
RunBatch()
           
 
Method Summary
static void execBatch()
          Executes the batch file.
static void replaceXslName(java.lang.String batchName, java.lang.String xslName)
          Replace the mark [XSL] in the batch file by the actual opened XSL stylesheet file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUN_BAT

public static final java.lang.String RUN_BAT
The name of the auxiliary batch file

See Also:
Constant Field Values
Constructor Detail

RunBatch

public RunBatch()
Method Detail

execBatch

public static void execBatch()
                      throws java.lang.Throwable
Executes the batch file.

Throws:
java.lang.Throwable - if the batch file cannot be executed.

replaceXslName

public static void replaceXslName(java.lang.String batchName,
                                  java.lang.String xslName)
                           throws java.lang.Throwable
Replace the mark [XSL] in the batch file by the actual opened XSL stylesheet file.

Parameters:
batchName - the name of the batch file.
xslName - the name of the actually opened XSL stylesheet file.
Throws:
java.lang.Throwable - if the batch file is invalid.