public class ExtractData extends Object implements ExecutableCliCommand
$APPNG_HOME to $appngData.WEB-INF/web.xml to $appngData/WEB-INF/web.xmlWEB-INF/conf to $appngData/confWEB-INF/bin to $appngData/binWEB-INF/logs to $appngData/logs/applications to $appngData/applications/repository to $appngData/repository
Additionally, a <Resources> element
is being added to $APPNG_HOME/META-INF/context.xml, referencing the appngData directory.
Usage: extract-data [options]
Options:
* -appngData
The folder to extract the data to.
-copy
Copy data instead of moving.
Default: false
-revert
Revert previously extracted data.
Default: false
| Constructor and Description |
|---|
ExtractData() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyBatchFileToBin(File binFolder,
String appngData,
String appngHome,
String name) |
void |
execute(CliEnvironment cle)
Executes the command.
|
protected void |
extract(String appngHome,
CliEnvironment cle,
String applicationDir,
String repositoryPath) |
protected static void |
replaceInFile(File file,
String search,
String replacement) |
protected void |
setCacheConfig(CliEnvironment cle) |
protected void |
writeContextXml(String appngHome) |
public void execute(CliEnvironment cle) throws BusinessException
ExecutableCliCommandexecute in interface ExecutableCliCommandcle - the CliEnvironment to useBusinessException - if on error occurs while executing the commandprotected void extract(String appngHome, CliEnvironment cle, String applicationDir, String repositoryPath) throws BusinessException
BusinessExceptionprotected void copyBatchFileToBin(File binFolder, String appngData, String appngHome, String name) throws IOException
IOExceptionprotected void writeContextXml(String appngHome) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionprotected void setCacheConfig(CliEnvironment cle)
protected static void replaceInFile(File file, String search, String replacement) throws IOException
IOExceptionCopyright © 2011–2023 aiticon GmbH. All rights reserved.