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, runWithActionspublic InitCommand(InitOptions opts)
protected InitCommand(InitOptions opts, ConsoleInteractor console, ZanataProxyFactory requestFactory)
protected void run()
throws Exception
ConfigurableCommandrun in class ConfigurableCommand<InitOptions>Exceptionprotected 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 destinationIOExceptionCopyright © 2014 Zanata Project. All Rights Reserved.