org.zanata.maven.ListRemoteMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zanata-maven-plugin Show documentation
Show all versions of zanata-maven-plugin Show documentation
Zanata client for managing projects, publishing
source text and retrieving translations.
package org.zanata.maven;
import org.apache.maven.plugins.annotations.Mojo;
import org.zanata.client.commands.ConfigurableProjectOptions;
import org.zanata.client.commands.ListRemoteCommand;
/**
* Lists all remote documents in the configured Zanata project version.
* @author Sean Flanigan [email protected]
*/
@Mojo(name = "list-remote", requiresOnline = true, requiresProject = false)
public class ListRemoteMojo extends
ConfigurableProjectMojo {
private static final String ZANATA_SERVER_PROJECT_TYPE = "remote";
public ListRemoteMojo() throws Exception {
super();
}
public ListRemoteCommand initCommand() {
return new ListRemoteCommand(this);
}
@Override
public String getProjectType() {
return ZANATA_SERVER_PROJECT_TYPE;
}
@Override
public String getCommandName() {
return "list-remote";
}
@Override
public boolean isAuthRequired() {
return false;
}
}