public class ExtractData extends Object implements ExecutableCliCommand
$APPNG_HOME
to $appngData
.WEB-INF/web.xml
to $appngData/WEB-INF/web.xml
WEB-INF/conf
to $appngData/conf
WEB-INF/bin
to $appngData/bin
WEB-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
ExecutableCliCommand
execute
in interface ExecutableCliCommand
cle
- the CliEnvironment
to useBusinessException
- if on error occurs while executing the commandprotected void extract(String appngHome, CliEnvironment cle, String applicationDir, String repositoryPath) throws BusinessException
BusinessException
protected void copyBatchFileToBin(File binFolder, String appngData, String appngHome, String name) throws IOException
IOException
protected void writeContextXml(String appngHome) throws IOException, URISyntaxException
IOException
URISyntaxException
protected void setCacheConfig(CliEnvironment cle)
protected static void replaceInFile(File file, String search, String replacement) throws IOException
IOException
Copyright © 2011–2020 aiticon GmbH. All rights reserved.