public class InitCommand extends ConfigurableCommand<InitOptions>
| Modifier | Constructor and Description |
|---|---|
|
InitCommand(InitOptions opts) |
protected |
InitCommand(InitOptions opts,
ConsoleInteractor console) |
protected |
InitCommand(InitOptions opts,
ConsoleInteractor console,
RestClientFactory restClientFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
downloadZanataXml(String projectId,
String iterationId,
File configFileDest)
Downloads the zanata.xml config file using REST api.
|
protected void |
ensureServerVersion() |
static void |
offerRetryOnServerError(Exception e,
ConsoleInteractor consoleInteractor) |
protected void |
run()
Runs the specific command, not including before- or after- actions.
|
protected void |
writeToConfig(File srcDir,
String includes,
String excludes,
File transDir,
File configFile) |
deprecate, expectYes, getClientFactory, getDeprecationMessage, getName, getOpts, isDeprecated, runWithActions, setClientFactorypublic InitCommand(InitOptions opts)
protected InitCommand(InitOptions opts, ConsoleInteractor console)
protected InitCommand(InitOptions opts, ConsoleInteractor console, RestClientFactory restClientFactory)
protected void run()
throws Exception
ConfigurableCommandrun in class ConfigurableCommand<InitOptions>Exceptionprotected void ensureServerVersion()
public static void offerRetryOnServerError(Exception e, ConsoleInteractor consoleInteractor)
protected void downloadZanataXml(String projectId, String iterationId, File configFileDest) throws IOException
projectId - project slugiterationId - iteration slugconfigFileDest - project config destinationIOExceptionCopyright © 2018 Zanata Project. All rights reserved.