public interface DeploymentContext
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectory(String targetDirectory,
FileInformation fileInformation) |
void |
addFile(ContentProvider content,
String targetFile,
FileInformation fileInformation)
Add a file to the deployment package
Add the content of the input stream as a file in the target system |
void |
addInstallDependency(String packageName) |
void |
addPostInstallationScript(Reader reader)
Add a script as post installation script
|
void |
runAfterInstallation(String script)
Run a shell script fragment after the installation or upgrade of the
package
|
void addInstallDependency(String packageName)
void addPostInstallationScript(Reader reader) throws IOException
The method has to close the reader before it returns. Even in the case of an exception.
reader - the content to addIOException - if anything goes wrongvoid runAfterInstallation(String script)
script - the script fragment to runvoid addFile(ContentProvider content, String targetFile, FileInformation fileInformation) throws IOException
The method has to close the input stream before it returns. Even in the case of an exception.
content - the content to addtargetFile - the name of the file in the target systemoptions - a list of optionsIOException - if anything goes wrongvoid addDirectory(String targetDirectory, FileInformation fileInformation)