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, setClientFactory
public InitCommand(InitOptions opts)
protected InitCommand(InitOptions opts, ConsoleInteractor console)
protected InitCommand(InitOptions opts, ConsoleInteractor console, RestClientFactory restClientFactory)
protected void run() throws Exception
ConfigurableCommand
run
in class ConfigurableCommand<InitOptions>
Exception
protected 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 destinationIOException
Copyright © 2016 Zanata Project. All rights reserved.