public interface ScriptBundleExecutor
Modifier and Type | Method and Description |
---|---|
void |
exec(boolean logOnly,
String dir,
String... scripts)
Runs a bundle of scripts.
|
void |
exec(String dir,
String... scripts)
Runs a bundle of scripts.
|
void |
execWithPostScript(String dir,
String postScript,
String... scripts)
Runs a bundle of scripts.
|
void exec(boolean logOnly, String dir, String... scripts)
logOnly
- true to catch and log any exceptions or false to rethrowdir
- Directory where the script bundle may be found.scripts
- Names of the SQL scripts to run, relative to the specified directory.org.alfresco.error.AlfrescoRuntimeException
- if a script fails and the logOnly flag is falsevoid exec(String dir, String... scripts)
dir
- Directory where the script bundle may be found.scripts
- Names of the SQL scripts to run, relative to the specified directory.void execWithPostScript(String dir, String postScript, String... scripts)
dir
- Directory where the script bundle may be found.postScript
- A script that is always run after the other scripts.scripts
- Names of the SQL scripts to run, relative to the specified directory.Copyright © 2005–2017 Alfresco Software. All rights reserved.