All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zanata.maven.ListRemoteMojo Maven / Gradle / Ivy

Go to download

Zanata client for managing projects, publishing source text and retrieving translations.

There is a newer version: 4.6.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy