public abstract class CommonPackageDeploymentContext extends Object implements DeploymentContext
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
postInstallation |
| Constructor and Description |
|---|
CommonPackageDeploymentContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstallDependency(String packageName) |
void |
addPostInstallationScript(Reader reader)
Add a script as post installation script
|
Set<String> |
getDependencies() |
String |
getPostInstallationString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDirectory, addFile, runAfterInstallationprotected final StringBuilder postInstallation
public void addInstallDependency(String packageName)
addInstallDependency in interface DeploymentContextpublic String getPostInstallationString()
public void addPostInstallationScript(Reader reader) throws IOException
DeploymentContextThe method has to close the reader before it returns. Even in the case of an exception.
addPostInstallationScript in interface DeploymentContextreader - the content to addIOException - if anything goes wrong