public class InitCommand extends ConfigurableCommand<InitOptions>
Modifier | Constructor and Description |
---|---|
|
InitCommand(InitOptions opts) |
protected |
InitCommand(InitOptions opts,
ConsoleInteractor console,
ZanataProxyFactory requestFactory) |
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() |
ZanataProxyFactory |
getRequestFactory() |
static void |
offerRetryOnServerError(org.jboss.resteasy.client.ClientResponse response,
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, getDeprecationMessage, getName, getOpts, isDeprecated, runWithActions
public InitCommand(InitOptions opts)
protected InitCommand(InitOptions opts, ConsoleInteractor console, ZanataProxyFactory requestFactory)
protected void run() throws Exception
ConfigurableCommand
run
in class ConfigurableCommand<InitOptions>
Exception
protected void ensureServerVersion()
public static void offerRetryOnServerError(org.jboss.resteasy.client.ClientResponse response, ConsoleInteractor consoleInteractor)
public ZanataProxyFactory getRequestFactory()
getRequestFactory
in class ConfigurableCommand<InitOptions>
protected void downloadZanataXml(String projectId, String iterationId, File configFileDest) throws IOException
projectId
- project slugiterationId
- iteration slugconfigFileDest
- project config destinationIOException
Copyright © 2015 Zanata Project. All rights reserved.